Struct stellar_client::resources::Transaction [−][src]
pub struct Transaction { /* fields omitted */ }Transactions are the basic unit of change in the Stellar Network. A transaction is a grouping of operations.
To learn more about the concept of transactions in the Stellar network, take a look at the Stellar transactions concept guide.
Methods
impl Transaction[src]
impl Transactionpub fn id(&self) -> &String[src]
pub fn id(&self) -> &StringThe canonical id of this transaction, suitable for use as the :id parameter for url templates that require a transaction’s ID.
pub fn paging_token(&self) -> &String[src]
pub fn paging_token(&self) -> &StringA paging token suitable for use as the cursor parameter to transaction collection resources.
pub fn hash(&self) -> &String[src]
pub fn hash(&self) -> &StringA hex-encoded SHA-256 hash of the transaction’s XDR-encoded form.
pub fn ledger(&self) -> u32[src]
pub fn ledger(&self) -> u32Sequence number of the ledger in which this transaction was applied.
pub fn created_at(&self) -> DateTime<Utc>[src]
pub fn created_at(&self) -> DateTime<Utc>The time the transaction was processed.
pub fn source_account(&self) -> &String[src]
pub fn source_account(&self) -> &StringThe account that signed and initiated the transaction
pub fn source_account_sequence(&self) -> u64[src]
pub fn source_account_sequence(&self) -> u64The current sequence number that can be used when submitting a transaction from the transaction signing account
pub fn fee_paid(&self) -> i64[src]
pub fn fee_paid(&self) -> i64The fee paid by the source account of this transaction when the transaction was applied to the ledger.
pub fn fee_as_amount(&self) -> Amount[src]
pub fn fee_as_amount(&self) -> AmountThe fee represented as an amount. This is useful when subtracting fees from other amounts in your model
pub fn operation_count(&self) -> u32[src]
pub fn operation_count(&self) -> u32The number of operations that are contained within this transaction.
pub fn envelope_xdr(&self) -> &String[src]
pub fn envelope_xdr(&self) -> &StringA base64 encoded string of the raw TransactionEnvelope xdr struct for this transaction
pub fn result_xdr(&self) -> &String[src]
pub fn result_xdr(&self) -> &StringA base64 encoded string of the raw TransactionResultPair xdr struct for this transaction
pub fn result_meta_xdr(&self) -> &String[src]
pub fn result_meta_xdr(&self) -> &StringA base64 encoded string of the raw TransactionMeta xdr struct for this transaction
pub fn fee_meta_xdr(&self) -> &String[src]
pub fn fee_meta_xdr(&self) -> &StringA base64 encoded string of the raw LedgerEntryChanges xdr struct produced by taking fees for this transaction.
pub fn memo(&self) -> &Memo[src]
pub fn memo(&self) -> &MemoThe value/contents of the memo for this transaction
Trait Implementations
impl Debug for Transaction[src]
impl Debug for Transactionfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Transaction[src]
impl Clone for Transactionfn clone(&self) -> Transaction[src]
fn clone(&self) -> TransactionReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
Auto Trait Implementations
impl Send for Transaction
impl Send for Transactionimpl Sync for Transaction
impl Sync for Transaction