[][src]Struct stellar_base::transaction::Transaction

pub struct Transaction { /* fields omitted */ }

Stellar transaction.

Implementations

impl Transaction[src]

pub fn builder<S: Into<MuxedAccount>>(
    source_account: S,
    sequence: i64,
    fee: Stroops
) -> TransactionBuilder
[src]

Creates a TransactionBuilder to configure a Transaction.

This is the same as TransactionBuilder::new.

pub fn source_account(&self) -> &MuxedAccount[src]

Retrieves the transaction source account.

pub fn source_account_mut(&mut self) -> &mut MuxedAccount[src]

Retrieves a mutable reference to the transaction source account.

pub fn fee(&self) -> &Stroops[src]

Retrieves the transaction fee.

pub fn fee_mut(&mut self) -> &mut Stroops[src]

Retrieves a mutable reference to the transaction fee.

pub fn sequence(&self) -> &i64[src]

Retrieves the transaction sequence number.

pub fn sequence_mut(&mut self) -> &mut i64[src]

Retrieves a mutable reference to the transaction sequence number.

pub fn time_bounds(&self) -> &Option<TimeBounds>[src]

Retrieves the transaction time bounds.

pub fn time_bounds_mut(&mut self) -> &mut Option<TimeBounds>[src]

Retrieves a mutable reference to the transaction time bounds.

pub fn memo(&self) -> &Memo[src]

Retrieves the transaction memo.

pub fn memo_mut(&mut self) -> &mut Memo[src]

Retrieves a mutable reference to the transaction memo.

pub fn operations(&self) -> &Vec<Operation>[src]

Retrieves the transaction operations.

pub fn operations_mut(&mut self) -> &mut Vec<Operation>[src]

Retrieves a mutable reference to the transaction operations.

pub fn signatures(&self) -> &Vec<DecoratedSignature>[src]

Retrieves the transaction signatures.

pub fn signatures_mut(&mut self) -> &mut Vec<DecoratedSignature>[src]

Retrieves a mutable reference to the transaction signatures.

pub fn to_envelope(&self) -> TransactionEnvelope[src]

Creates a TransactionEnvelope from the transaction.

pub fn into_envelope(self) -> TransactionEnvelope[src]

Creates a TransactionEnvelope from the transaction.

This consumes the transaction and takes ownership of it.

pub fn sign_hashx(&mut self, preimage: &[u8]) -> Result<()>[src]

Sign transaction with preimage, and add signature.

This signs the transaction with the preimage x of hash(x).

pub fn sign(&mut self, key: &KeyPair, network: &Network) -> Result<()>[src]

Sign transaction with key for network, and add signature.

pub fn decorated_signature_from_preimage(
    &self,
    preimage: &[u8]
) -> Result<DecoratedSignature>
[src]

Returns the decorated signature of the transaction create with image.

pub fn decorated_signature(
    &self,
    key: &KeyPair,
    network: &Network
) -> Result<DecoratedSignature>
[src]

Returns the decorated signature of the transaction create with key for network.

pub fn hash(&self, network: &Network) -> Result<Vec<u8>>[src]

Returns the transaction hash for the transaction on network.

pub fn signature_data(&self, network: &Network) -> Result<Vec<u8>>[src]

Returns the transaction signature data as bytes.

pub fn to_xdr(&self) -> Result<Transaction>[src]

Returns the xdr object.

pub fn to_xdr_envelope(&self) -> Result<TransactionV1Envelope>[src]

Returns the transaction envelope v1 xdr object.

pub fn to_xdr_transaction_signature_payload(
    &self,
    network: &Network
) -> Result<TransactionSignaturePayload>
[src]

Returns the xdr transaction signature payload object.

pub fn from_xdr(x: &Transaction) -> Result<Transaction>[src]

Creates from xdr object.

pub fn from_xdr_envelope(x: &TransactionV1Envelope) -> Result<Transaction>[src]

Creates from xdr envelope object.

Trait Implementations

impl Clone for Transaction[src]

impl Debug for Transaction[src]

impl Eq for Transaction[src]

impl PartialEq<Transaction> for Transaction[src]

impl StructuralEq for Transaction[src]

impl StructuralPartialEq for Transaction[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.