Module transaction

Source
Expand description

Compatibility functions for rpc Transaction type.

Traits§

TransactionCompat
Builds RPC transaction w.r.t. network.

Functions§

from_recovered
Create a new rpc transaction result for a pending signed transaction, setting block environment related fields to None.
from_recovered_with_block_context
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.
transaction_to_call_request
Convert [RecoveredTx] to [TransactionRequest]