Function resolve_transaction

Source
pub fn resolve_transaction<DB, Tx, T>(
    tx: TransactionRequest,
    validation: bool,
    default_gas_limit: u64,
    chain_id: u64,
    db: &mut DB,
    tx_resp_builder: &T,
) -> Result<Recovered<Tx>, EthApiError>
where DB: Database, T: TransactionCompat<Tx>, <DB as Database>::Error: Into<EthApiError>,
Available on crate feature rpc only.
Expand description

Goes over the list of [TransactionRequest]s and populates missing fields trying to resolve them into primitive transactions.

If validation is enabled, the function will return error if any of the transactions can’t be built right away.