Struct shuttle_core::Transaction
[−]
[src]
pub struct Transaction {
pub source: PublicKey,
pub sequence: u64,
pub fee: Stroops,
pub time_bounds: Option<TimeBounds>,
pub memo: Memo,
pub operations: Vec<Operation>,
}A transaction containing operations that change the ledger state.
Fields
source: PublicKey
The source account.
sequence: u64
The sequence number.
fee: Stroops
The fee.
time_bounds: Option<TimeBounds>
The validity time bounds.
memo: Memo
The attached memo.
operations: Vec<Operation>
The operations.
Methods
impl Transaction[src]
fn new(
source: PublicKey,
sequence: u64,
time_bounds: Option<TimeBounds>,
memo: Memo,
operations: Vec<Operation>
) -> Transaction[src]
source: PublicKey,
sequence: u64,
time_bounds: Option<TimeBounds>,
memo: Memo,
operations: Vec<Operation>
) -> Transaction
Create a new transaction.
fn source(&self) -> &PublicKey[src]
The transaction source account.
fn base_fee(&self) -> &Stroops[src]
The transaction fee.
fn time_bounds(&self) -> &Option<TimeBounds>[src]
The transaction time bounds for its validity.
fn memo(&self) -> &Memo[src]
The memo attached to the transaction.
fn sequence(&self) -> u64[src]
The transaction sequence number.
fn operations(&self) -> &Vec<Operation>[src]
The operations included in the transaction.
fn sign(self, keypair: &KeyPair, network: &Network) -> Result<SignedTransaction>[src]
Sign the transaction, returning a signed transaction that can be submitted to the network.
Trait Implementations
impl Debug for Transaction[src]
impl Clone for Transaction[src]
fn clone(&self) -> Transaction[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl ToXdr<Transaction> for Transaction[src]
fn to_xdr(&self) -> Result<Transaction>[src]
Build the object that can be serialized to XDR.
fn to_writer<W: Write>(&self, w: &mut W) -> Result<()>[src]
Serialize to the writer w.
fn to_base64(&self) -> Result<String>[src]
Serialize to base64.
impl<'de> FromXdr<'de, Transaction> for Transaction[src]
fn from_xdr(tx: Transaction) -> Result<Transaction>[src]
Build the type from the XDR other object .
fn from_reader<R: Read>(r: &mut R) -> Result<Self>[src]
Deserialize from a reader r.
fn from_base64(input: &str) -> Result<Self>[src]
Deserialize from base64.