pub trait SignableTransaction {
// Required method
fn sign_and_encode_to_eip2718<'life0, 'async_trait>(
self,
nonce: u64,
max_gas: Option<GasEstimation>,
chain_keypair: &'life0 ChainKeypair,
) -> Pin<Box<dyn Future<Output = Result<Box<[u8]>, ChainTypesError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Trait for transaction payloads that can be signed and encoded to EIP2718 format.
Required Methods§
Sourcefn sign_and_encode_to_eip2718<'life0, 'async_trait>(
self,
nonce: u64,
max_gas: Option<GasEstimation>,
chain_keypair: &'life0 ChainKeypair,
) -> Pin<Box<dyn Future<Output = Result<Box<[u8]>, ChainTypesError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn sign_and_encode_to_eip2718<'life0, 'async_trait>(
self,
nonce: u64,
max_gas: Option<GasEstimation>,
chain_keypair: &'life0 ChainKeypair,
) -> Pin<Box<dyn Future<Output = Result<Box<[u8]>, ChainTypesError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sign the transaction using the given chain keypair and encode it to EIP2718 format.