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.
TxBuilderInner ๐Ÿ”’
The state-independent part of CastTxBuilder.
TxParams
Transaction options shared across cast commands that submit on-chain transactions.

Enumsยง

SenderKind
Different sender kinds used by CastTxBuilder.

Functionsยง

apply_poll_interval ๐Ÿ”’
Applies the --poll-interval (in seconds) to a providerโ€™s receipt polling when one was given.
decode_custom_error ๐Ÿ”’
Tries to decode a custom error name and inputs from revert data.
fill_transaction_gas_fees ๐Ÿ”’
Fills gas price or EIP-1559 fee fields from the provider and validates the final pair.
read_only_sender ๐Ÿ”’
Resolves the sender of a read-only request: the browser wallet address when --browser is set, otherwise the wallet options. Also returns whether the browser wallet was used.
resolve_send_signer ๐Ÿ”’
Resolves the sending signer, falling back to the wallet options, and validates it against an explicit --from.
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