op_alloy_network

Trait TransactionBuilder7702

pub trait TransactionBuilder7702:
    Sized
    + Default
    + 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§

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

Get the EIP-7702 authorization list for the transaction.

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

Sets the EIP-7702 authorization list.

Provided Methods§

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

Builder-pattern method for setting the authorization list.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl TransactionBuilder7702 for TransactionRequest

§

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

§

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

§

impl TransactionBuilder7702 for WithOtherFields<TransactionRequest>

§

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

§

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

Implementors§