pub struct FeePayerRawTransaction {
pub raw_txn: RawTransaction,
pub secondary_signer_addresses: Vec<AccountAddress>,
pub fee_payer_address: AccountAddress,
}Expand description
Fee payer transaction where a third party pays gas fees.
Fields§
§raw_txn: RawTransactionThe raw transaction.
secondary_signer_addresses: Vec<AccountAddress>Secondary signer addresses (for multi-agent).
fee_payer_address: AccountAddressThe fee payer’s address.
Implementations§
Source§impl FeePayerRawTransaction
impl FeePayerRawTransaction
Sourcepub fn new(
raw_txn: RawTransaction,
secondary_signer_addresses: Vec<AccountAddress>,
fee_payer_address: AccountAddress,
) -> Self
pub fn new( raw_txn: RawTransaction, secondary_signer_addresses: Vec<AccountAddress>, fee_payer_address: AccountAddress, ) -> Self
Creates a new fee payer transaction.
Sourcepub fn new_simple(
raw_txn: RawTransaction,
fee_payer_address: AccountAddress,
) -> Self
pub fn new_simple( raw_txn: RawTransaction, fee_payer_address: AccountAddress, ) -> Self
Creates a fee payer transaction without secondary signers.
Sourcepub fn signing_message(&self) -> AptosResult<Vec<u8>>
pub fn signing_message(&self) -> AptosResult<Vec<u8>>
Generates the signing message for fee payer transactions.
§Errors
Returns an error if BCS serialization fails.
Trait Implementations§
Source§impl Clone for FeePayerRawTransaction
impl Clone for FeePayerRawTransaction
Source§fn clone(&self) -> FeePayerRawTransaction
fn clone(&self) -> FeePayerRawTransaction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FeePayerRawTransaction
impl Debug for FeePayerRawTransaction
Source§impl<'de> Deserialize<'de> for FeePayerRawTransaction
impl<'de> Deserialize<'de> for FeePayerRawTransaction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FeePayerRawTransaction
impl PartialEq for FeePayerRawTransaction
Source§impl Serialize for FeePayerRawTransaction
impl Serialize for FeePayerRawTransaction
impl Eq for FeePayerRawTransaction
impl StructuralPartialEq for FeePayerRawTransaction
Auto Trait Implementations§
impl Freeze for FeePayerRawTransaction
impl RefUnwindSafe for FeePayerRawTransaction
impl Send for FeePayerRawTransaction
impl Sync for FeePayerRawTransaction
impl Unpin for FeePayerRawTransaction
impl UnsafeUnpin for FeePayerRawTransaction
impl UnwindSafe for FeePayerRawTransaction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoMoveArg for Twhere
T: Serialize,
impl<T> IntoMoveArg for Twhere
T: Serialize,
Source§fn into_move_arg(self) -> Result<Vec<u8>, AptosError>
fn into_move_arg(self) -> Result<Vec<u8>, AptosError>
Converts this value into BCS-encoded bytes. Read more