Skip to main content

Module api

Module api 

Source

Re-exportsยง

use super::backend::mem::BlockRequest; ๐Ÿ”’
use super::backend::mem::DatabaseRef; ๐Ÿ”’
use super::backend::mem::GasEstimateCallOptions; ๐Ÿ”’
use super::backend::mem::MonadReplayContext; ๐Ÿ”’
use super::backend::mem::sanitize_simulation_blocks; ๐Ÿ”’
use super::preserve_simulation_request_fields; ๐Ÿ”’
use super::tempo_consensus::TempoCertifiedBlock; ๐Ÿ”’
use super::tempo_consensus::TempoConsensusState; ๐Ÿ”’
use crate::ClientFork; ๐Ÿ”’
use crate::LoggingManager; ๐Ÿ”’
use crate::Miner; ๐Ÿ”’
use crate::MiningMode; ๐Ÿ”’
use crate::StorageInfo; ๐Ÿ”’
use crate::eth::backend; ๐Ÿ”’
use crate::eth::backend::db::SerializableState; ๐Ÿ”’
use crate::eth::backend::mem::MIN_TRANSACTION_GAS; ๐Ÿ”’
use crate::eth::backend::notifications::ChainNotifications; ๐Ÿ”’
use crate::eth::backend::tempo_consensus::TempoConsensusIdentity; ๐Ÿ”’
use crate::eth::backend::validate::TransactionValidator; ๐Ÿ”’
use crate::eth::error::BlockchainError; ๐Ÿ”’
use crate::eth::error::FeeHistoryError; ๐Ÿ”’
use crate::eth::error::InvalidTransactionError; ๐Ÿ”’
use crate::eth::error::Result; ๐Ÿ”’
use crate::eth::error::ToRpcResponseResult; ๐Ÿ”’
use crate::eth::fees::FeeDetails; ๐Ÿ”’
use crate::eth::fees::FeeHistoryCache; ๐Ÿ”’
use crate::eth::fees::FeeHistoryCacheItem; ๐Ÿ”’
use crate::eth::fees::MIN_SUGGESTED_PRIORITY_FEE; ๐Ÿ”’
use crate::eth::fees::REWARD_PERCENTILE_RESOLUTION; ๐Ÿ”’
use crate::eth::fees::create_fee_history_cache_item; ๐Ÿ”’
use crate::eth::macros::node_info; ๐Ÿ”’
use crate::eth::miner::FixedBlockTimeMiner; ๐Ÿ”’
use crate::eth::pool::Pool; ๐Ÿ”’
use crate::eth::pool::PoolSnapshot; ๐Ÿ”’
use crate::eth::pool::transactions::PoolTransaction; ๐Ÿ”’
use crate::eth::pool::transactions::TransactionOrder; ๐Ÿ”’
use crate::eth::pool::transactions::TransactionPriority; ๐Ÿ”’
use crate::eth::pool::transactions::TxMarker; ๐Ÿ”’
use crate::eth::pool::transactions::to_marker; ๐Ÿ”’
use crate::eth::sign::Signer; ๐Ÿ”’
use crate::filter::EthFilter; ๐Ÿ”’
use crate::filter::Filters; ๐Ÿ”’
use crate::filter::LogsFilter; ๐Ÿ”’
use crate::mem::transaction_build; ๐Ÿ”’
use alloy_consensus::Blob; ๐Ÿ”’
use alloy_consensus::BlockHeader; ๐Ÿ”’
use alloy_consensus::Transaction; ๐Ÿ”’
use alloy_consensus::TrieAccount; ๐Ÿ”’
use alloy_consensus::TxEip4844Variant; ๐Ÿ”’
use alloy_consensus::TxReceipt; ๐Ÿ”’
use alloy_consensus::Typed2718; ๐Ÿ”’
use alloy_consensus::transaction::Recovered; ๐Ÿ”’
use alloy_consensus::transaction::SignerRecoverable; ๐Ÿ”’
use alloy_dyn_abi::TypedData; ๐Ÿ”’
use alloy_eips::eip2718::EIP4844_TX_TYPE_ID; ๐Ÿ”’
use alloy_eips::eip2718::Encodable2718; ๐Ÿ”’
use alloy_eips::eip4844::DATA_GAS_PER_BLOB; ๐Ÿ”’
use alloy_eips::eip7910::EthConfig; ๐Ÿ”’
use alloy_eips::eip7910::EthForkConfig; ๐Ÿ”’
use alloy_evm::overrides::OverrideBlockHashes; ๐Ÿ”’
use alloy_evm::overrides::apply_state_overrides; ๐Ÿ”’
use alloy_network::AnyRpcBlock; ๐Ÿ”’
use alloy_network::AnyRpcHeader; ๐Ÿ”’
use alloy_network::AnyRpcTransaction; ๐Ÿ”’
use alloy_network::BlockResponse; ๐Ÿ”’
use alloy_network::Network; ๐Ÿ”’
use alloy_network::NetworkTransactionBuilder; ๐Ÿ”’
use alloy_network::ReceiptResponse; ๐Ÿ”’
use alloy_network::TransactionBuilder; ๐Ÿ”’
use alloy_network::TransactionBuilder4844; ๐Ÿ”’
use alloy_network::TransactionResponse; ๐Ÿ”’
use alloy_network::eip2718::Decodable2718; ๐Ÿ”’
use alloy_primitives::Address; ๐Ÿ”’
use alloy_primitives::B64; ๐Ÿ”’
use alloy_primitives::B256; ๐Ÿ”’
use alloy_primitives::Bytes; ๐Ÿ”’
use alloy_primitives::TxHash; ๐Ÿ”’
use alloy_primitives::TxKind; ๐Ÿ”’
use alloy_primitives::U64; ๐Ÿ”’
use alloy_primitives::U256; ๐Ÿ”’
use alloy_primitives::map::AddressSet; ๐Ÿ”’
use alloy_primitives::map::B256Set; ๐Ÿ”’
use alloy_primitives::map::HashMap; ๐Ÿ”’
use alloy_primitives::map::HashSet; ๐Ÿ”’
use alloy_rlp::Encodable; ๐Ÿ”’
use alloy_rlp::Header; ๐Ÿ”’
use alloy_rlp::PayloadView; ๐Ÿ”’
use alloy_rpc_types::AccessListResult; ๐Ÿ”’
use alloy_rpc_types::BlockId; ๐Ÿ”’
use alloy_rpc_types::BlockNumberOrTag as BlockNumber; ๐Ÿ”’
use alloy_rpc_types::BlockTransactions; ๐Ÿ”’
use alloy_rpc_types::EIP1186AccountProofResponse; ๐Ÿ”’
use alloy_rpc_types::FeeHistory; ๐Ÿ”’
use alloy_rpc_types::Filter; ๐Ÿ”’
use alloy_rpc_types::FilteredParams; ๐Ÿ”’
use alloy_rpc_types::Index; ๐Ÿ”’
use alloy_rpc_types::Log; ๐Ÿ”’
use alloy_rpc_types::Work; ๐Ÿ”’
use alloy_rpc_types::anvil::ForkedNetwork; ๐Ÿ”’
use alloy_rpc_types::anvil::Forking; ๐Ÿ”’
use alloy_rpc_types::anvil::Metadata; ๐Ÿ”’
use alloy_rpc_types::anvil::MineOptions; ๐Ÿ”’
use alloy_rpc_types::anvil::NodeEnvironment; ๐Ÿ”’
use alloy_rpc_types::anvil::NodeForkConfig; ๐Ÿ”’
use alloy_rpc_types::anvil::NodeInfo; ๐Ÿ”’
use alloy_rpc_types::debug::ExecutionWitness; ๐Ÿ”’
use alloy_rpc_types::erc4337::TransactionConditional; ๐Ÿ”’
use alloy_rpc_types::pubsub::TransactionReceiptsParams; ๐Ÿ”’
use alloy_rpc_types::request::TransactionRequest; ๐Ÿ”’
use alloy_rpc_types::simulate::MAX_SIMULATE_BLOCKS; ๐Ÿ”’
use alloy_rpc_types::simulate::SimulatePayload; ๐Ÿ”’
use alloy_rpc_types::simulate::SimulatedBlock; ๐Ÿ”’
use alloy_rpc_types::state::AccountOverride; ๐Ÿ”’
use alloy_rpc_types::state::EvmOverrides; ๐Ÿ”’
use alloy_rpc_types::state::StateOverride; ๐Ÿ”’
use alloy_rpc_types::state::StateOverridesBuilder; ๐Ÿ”’
use alloy_rpc_types::trace::filter::TraceFilter; ๐Ÿ”’
use alloy_rpc_types::trace::geth::GethDebugTracingCallOptions; ๐Ÿ”’
use alloy_rpc_types::trace::geth::GethDebugTracingOptions; ๐Ÿ”’
use alloy_rpc_types::trace::geth::GethTrace; ๐Ÿ”’
use alloy_rpc_types::trace::geth::TraceResult; ๐Ÿ”’
use alloy_rpc_types::trace::opcode::BlockOpcodeGas; ๐Ÿ”’
use alloy_rpc_types::trace::opcode::TransactionOpcodeGas; ๐Ÿ”’
use alloy_rpc_types::trace::parity::LocalizedTransactionTrace; ๐Ÿ”’
use alloy_rpc_types::trace::parity::TraceResults; ๐Ÿ”’
use alloy_rpc_types::trace::parity::TraceResultsWithTransactionHash; ๐Ÿ”’
use alloy_rpc_types::trace::parity::TraceType; ๐Ÿ”’
use alloy_rpc_types::txpool::TxpoolContent; ๐Ÿ”’
use alloy_rpc_types::txpool::TxpoolContentFrom; ๐Ÿ”’
use alloy_rpc_types::txpool::TxpoolInspect; ๐Ÿ”’
use alloy_rpc_types::txpool::TxpoolInspectSummary; ๐Ÿ”’
use alloy_rpc_types::txpool::TxpoolStatus; ๐Ÿ”’
use alloy_rpc_types_eth::AccountInfo; ๐Ÿ”’
use alloy_rpc_types_eth::Bundle; ๐Ÿ”’
use alloy_rpc_types_eth::EthCallResponse; ๐Ÿ”’
use alloy_rpc_types_eth::FillTransaction; ๐Ÿ”’
use alloy_rpc_types_eth::StateContext; ๐Ÿ”’
use alloy_rpc_types_mev::EthCallBundle; ๐Ÿ”’
use alloy_rpc_types_mev::EthCallBundleResponse; ๐Ÿ”’
use alloy_serde::WithOtherFields; ๐Ÿ”’
use alloy_sol_types::SolCall; ๐Ÿ”’
use alloy_sol_types::SolValue; ๐Ÿ”’
use alloy_sol_types::sol; ๐Ÿ”’
use anvil_core::eth::EthRequest; ๐Ÿ”’
use anvil_core::eth::TempoConsensusQuery; ๐Ÿ”’
use anvil_core::eth::block::Block; ๐Ÿ”’
use anvil_core::eth::block::BlockInfo; ๐Ÿ”’
use anvil_core::eth::block::canonical_block; ๐Ÿ”’
use anvil_core::eth::transaction::MaybeImpersonatedTransaction; ๐Ÿ”’
use anvil_core::eth::transaction::PendingTransaction; ๐Ÿ”’
use anvil_core::types::NodeBlobParams; ๐Ÿ”’
use anvil_core::types::ReorgOptions; ๐Ÿ”’
use anvil_core::types::TransactionData; ๐Ÿ”’
use anvil_rpc::error::ErrorCode; ๐Ÿ”’
use anvil_rpc::error::RpcError; ๐Ÿ”’
use anvil_rpc::response::ResponseResult; ๐Ÿ”’
use foundry_common::provider::redact_url; ๐Ÿ”’
use foundry_common::tempo::PaymentLaneClassification; ๐Ÿ”’
use foundry_common::tempo::PaymentLaneReason; ๐Ÿ”’
use foundry_common::tempo::classify_payment_lane; ๐Ÿ”’
use foundry_common::version::COMMIT_SHA; ๐Ÿ”’
use foundry_common::version::SEMVER_VERSION; ๐Ÿ”’
use foundry_evm::decode::RevertDecoder; ๐Ÿ”’
use foundry_evm::utils::StateChangeset; ๐Ÿ”’
use foundry_primitives::FoundryNetwork; ๐Ÿ”’
use foundry_primitives::FoundryReceiptEnvelope; ๐Ÿ”’
use foundry_primitives::FoundryTransactionRequest; ๐Ÿ”’
use foundry_primitives::FoundryTxEnvelope; ๐Ÿ”’
use foundry_primitives::FoundryTxReceipt; ๐Ÿ”’
use foundry_primitives::FoundryTypedTx; ๐Ÿ”’
use futures::StreamExt; ๐Ÿ”’
use futures::TryFutureExt; ๐Ÿ”’
use futures::channel::mpsc::Receiver; ๐Ÿ”’
use futures::channel::oneshot; ๐Ÿ”’
use parking_lot::Mutex; ๐Ÿ”’
use parking_lot::RwLock; ๐Ÿ”’
use revm::context::BlockEnv; ๐Ÿ”’
use revm::context_interface::block::BlobExcessGasAndPrice; ๐Ÿ”’
use revm::context_interface::result::HaltReason; ๐Ÿ”’
use revm::context_interface::result::Output; ๐Ÿ”’
use revm::database::CacheDB; ๐Ÿ”’
use revm::interpreter::InstructionResult; ๐Ÿ”’
use revm::interpreter::SuccessOrHalt; ๐Ÿ”’
use revm::interpreter::return_ok; ๐Ÿ”’
use revm::interpreter::return_revert; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’
use std::time::Duration; ๐Ÿ”’
use tempo_hardfork::TempoHardfork; ๐Ÿ”’
use tempo_primitives::AASigned; ๐Ÿ”’
use tempo_primitives::TEMPO_TX_TYPE_ID; ๐Ÿ”’
use tempo_primitives::transaction::FEE_PAYER_SIGNATURE_MARKER; ๐Ÿ”’
use tokio::sync::mpsc; ๐Ÿ”’
use tokio::sync::mpsc::UnboundedReceiver; ๐Ÿ”’
use tokio::sync::mpsc::unbounded_channel; ๐Ÿ”’
use tokio::try_join; ๐Ÿ”’
use base_common_consensus::Eip8130Constants; ๐Ÿ”’ base
use base_common_evm::EIP8130_TRANSACTION_TYPE; ๐Ÿ”’ base
use base_common_precompiles::NonceManagerStorage; ๐Ÿ”’ base
use base_common_rpc_types::BaseTransactionRequest; ๐Ÿ”’ base
use base_common_rpc_types::Eip8130Nonce; ๐Ÿ”’ base
use base_execution_eip8130::FeeCheck; ๐Ÿ”’ base
use base_execution_eip8130::IntrinsicGas; ๐Ÿ”’ base

Structsยง

EthApi
The entry point for executing eth api RPC call - The Eth RPC interface.
TransactionFeeDefaults ๐Ÿ”’

Enumsยง

GasEstimationCallResult ๐Ÿ”’
Keeps result of a call to revm EVM used for gas estimation

Constantsยง

CLIENT_VERSION
The client version: anvil/v{major}.{minor}.{patch}

Functionsยง

convert_transact_out ๐Ÿ”’
eip8130_channel_marker ๐Ÿ”’ base
eip8130_replay_marker ๐Ÿ”’ base
encode_rpc_transaction ๐Ÿ”’
EIP-2718 encodes a transaction held in its JSON-RPC form, reporting the types anvil cannot encode as BlockchainError::UnsupportedTransactionEncoding.
ensure_return_ok ๐Ÿ”’
Returns an error if the exit code is not ok
execution_error ๐Ÿ”’
Maps an EVM exit code to the optional error string reported in eth_createAccessList results.
is_simple_transfer_request ๐Ÿ”’
merge_pre_fork_fee_history ๐Ÿ”’
Appends the upstream part of a fee-history range that crosses the fork boundary.
normalize_fee_payer_service_encoding ๐Ÿ”’
Rewrites the Tempo fee payer service encoding of a raw transaction into the standard envelope encoding.
required_marker ๐Ÿ”’
reward_at_percentile ๐Ÿ”’
tempo_nonce_marker ๐Ÿ”’
txpool_transaction_key ๐Ÿ”’