Module transaction
Expand description
Compatibility functions for rpc Transaction
type.
Structs§
- Gas price and max fee per gas for a transaction. Helper type to format transaction RPC response.
Traits§
- Builds RPC transaction w.r.t. network.
Functions§
- Creates a new rpc signature from a legacy primitive signature, using the give chain id to compute the signature’s recovery id.
- Creates a new rpc signature from a legacy primitive signature.
- Create a new rpc transaction result for a pending signed transaction, setting block environment related fields to
None
. - Create a new rpc transaction result for a mined transaction, using the given block hash, number, and tx index fields to populate the corresponding fields in the rpc result.
- Creates a new rpc signature from a non-legacy primitive signature. This sets the
v
value to0
or1
depending on the signature’sodd_y_parity
. - Convert
TransactionSignedEcRecovered
toTransactionRequest