Skip to main content

Module tx

Module tx 

Source

StructsΒ§

CastTxBuilder
Builder type constructing generic TransactionRequest from cast send/mktx inputs.
CastTxSender
InitState
Initial state.
InputState
State with known input for the transaction.
SendTxOpts
ToState
State with known TxKind.
TxParams
Transaction options shared across cast commands that submit on-chain transactions.

EnumsΒ§

SenderKind
Different sender kinds used by CastTxBuilder.

FunctionsΒ§

decode_custom_error πŸ”’
decode_execution_revert πŸ”’
Helper function that tries to decode custom error name and inputs from error payload data.
fill_transaction_gas_fees πŸ”’
Fills gas price or EIP-1559 fee fields from the provider and validates the final pair.
validate_authorizations πŸ”’
Validates that sender can resolve every EIP-7702 authorization.
validate_from_address
Prevents a misconfigured hwlib from sending a transaction that defies user-specified –from