Expand description
Tempo transaction helpers used by Cast-facing commands.
StructsΒ§
- Anvil
Node πInfo - Existing
Transport πConnector - Connector for reusing an already-configured RPC transport.
- Tempo
Sponsor - Gas sponsor configuration for Tempo fee-payer signatures.
FunctionsΒ§
- active_
from_ πanvil_ node_ info - anvil_
tempo_ πhardfork_ active - apply_
fee_ πpayment - Attaches the fee payment to a built transaction: the sponsor signature when a sponsor is
configured, otherwise the resolved fee token for
payer(printing it when it was resolved). - ensure_
session_ πnot_ browser - ensure_
tempo_ πprecompile_ active - Fails early with
requirementwhen a Tempo precompile is not active yet: a pre-fork call would succeed as a silent no-op instead of reverting. Prefers the hardfork query and falls back to checking the precompileβs code when the RPC lacks the method. - fill_
access_ πkey_ transaction - Fills a Tempo transaction request that was built outside
crate::tx::CastTxBuilderbefore access-key signing. - is_
tempo_ πhardfork_ active - maybe_
attach_ πsponsor - Resolves the sponsored fee token and attaches the sponsor signature preview for
payerwhen a sponsor is configured. - print_
expires π - print_
payload π - Prints a command result: the raw payload in JSON mode, the human rendering otherwise.
- require_
hardfork π - Fails with
messageunlesshardforkis active on the RPC. - resolve_
and_ πprint_ fee_ token - Resolves and sets the fee token paid by
fee_payer, printing it when it was resolved. - resolve_
session_ πor_ wallet_ signer - Resolves a command signer, preferring an explicitly selected Tempo session.
- resolve_
transaction_ πnetwork_ and_ signer - Resolves the transaction network and any configured signer without letting an unrelated Tempo Accounts store change ordinary Ethereum commands.
- sponsor_
hash π - Computes the sponsor hash of a built transaction, resolving the fee token for
fee_payerfirst when one is configured. Used by--tempo.print-sponsor-hash. - sponsor_
relay_ πconnector - tempo_
provider π - Loads the config for
optsand builds a Tempo provider from it.