Skip to main content

TransactionEnvelope

Type Alias TransactionEnvelope 

Source
pub type TransactionEnvelope = Envelope<SenderSignedTransaction, EmptySignInfo>;
Expand description

A transaction that is signed by a sender but not yet by an authority.

Aliased Type§

pub struct TransactionEnvelope { /* private fields */ }

Implementations§

Source§

impl TransactionEnvelope

Source

pub fn from_data_and_signer( tx: Transaction, signers: Vec<&impl Signer<SimpleSignature>>, ) -> Self

Source

pub fn from_data(tx: Transaction, signatures: Vec<SimpleSignature>) -> Self

Source

pub fn signature_from_signer( tx: Transaction, intent: Intent, signer: &impl Signer<SimpleSignature>, ) -> SimpleSignature

Source

pub fn from_user_sig_data( tx: Transaction, signatures: Vec<UserSignature>, ) -> Self

Source

pub fn to_tx_bytes_and_signatures(&self) -> (Base64, Vec<Base64>)

Returns the Base64 encoded tx_bytes and a list of Base64 encoded [UserSignature].

Source§

impl TransactionEnvelope

Trait Implementations§

Source§

impl From<SignedTransaction> for TransactionEnvelope

Source§

fn from(value: SignedTransaction) -> Self

Converts to this type from the input type.