alloy_network

Trait TransactionBuilder7702

source
pub trait TransactionBuilder7702:
    Default
    + Sized
    + Send
    + Sync
    + 'static {
    // Required methods
    fn authorization_list(&self) -> Option<&Vec<SignedAuthorization>>;
    fn set_authorization_list(
        &mut self,
        authorization_list: Vec<SignedAuthorization>,
    );

    // Provided method
    fn with_authorization_list(
        self,
        authorization_list: Vec<SignedAuthorization>,
    ) -> Self { ... }
}
Expand description

Transaction builder type supporting EIP-7702 transaction fields.

Required Methods§

source

fn authorization_list(&self) -> Option<&Vec<SignedAuthorization>>

Get the EIP-7702 authorization list for the transaction.

source

fn set_authorization_list( &mut self, authorization_list: Vec<SignedAuthorization>, )

Sets the EIP-7702 authorization list.

Provided Methods§

source

fn with_authorization_list( self, authorization_list: Vec<SignedAuthorization>, ) -> Self

Builder-pattern method for setting the authorization list.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

source§

impl TransactionBuilder7702 for TransactionRequest

source§

impl TransactionBuilder7702 for WithOtherFields<TransactionRequest>

Implementors§