eth_simulateV1
Executes a sequence of message calls building on each other's state without creating transactions on the block chain, optionally overriding block and state data
Parameters (by position)
Payload object required
Arguments for eth_simulate
Show Payload object
Payload objectPayload fields
-
blockStateCalls
array<object>Definition of blocks that can contain calls and overrides
Show
blockStateCallsobjectblockStateCallsfieldsDefinition of blocks that can contain calls and overrides
-
blockOverrides
objectBlock overrides can be used to replace fields in a block. default: no block override.
Show
blockOverridesobjectblockOverridesfieldsBlock overrides can be used to replace fields in a block. default: no block override.
-
baseFeePerGas
stringBase fee per unit of gas
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,63})$
-
blobBaseFee
stringBase fee per unit of blob gas
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,15})$
-
feeRecipient
stringCoinbase of the simulated block. The block's
minerfield and the COINBASE opcode return it, and it receives the priority fees. It can differ from the fee recipient that a validator registers outside the protocol.Match pattern:
^0x[0-9a-fA-F]{40}$
-
gasLimit
stringGas limit
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,15})$
-
number
stringWhen overriding block numbers across multiple blocks, block number need to be increasing. Skipping over blocks numbers is possible. If block number is not specified, it's incremented by one for each block.
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,15})$
-
prevRandao
stringThe Previous value of randomness beacon
Match pattern:
^0x[0-9a-f]{64}$
-
time
stringTime must increase relative to the previous block. Equal timestamps are rejected. If time is not specified, it is the previous block's time plus the network block time (12 seconds on Ethereum mainnet).
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,15})$
-
withdrawals
array<object>This array can have a maximum length of 16.
Show
withdrawalsobjectwithdrawalsfieldsThis array can have a maximum length of 16.
-
address
stringrequiredrecipient address for withdrawal value
Match pattern:
^0x[0-9a-fA-F]{40}$
-
amount
stringrequiredvalue contained in withdrawal, in Gwei
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,15})$
-
index
stringrequiredindex of withdrawal
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,15})$
-
validatorIndex
stringrequiredindex of validator that generated withdrawal
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,15})$
-
additionalProperties
false
-
-
additionalProperties
true
-
-
calls
array<object>List of transactions to execute at this block/state. Default: []
Show
callsobjectcallsfieldsList of transactions to execute at this block/state. Default: []
-
accessList
array<object>EIP-2930 access list Default: []
Show
accessListobjectaccessListfieldsEIP-2930 access list Default: []
-
address
stringrequiredhex encoded address
Match pattern:
^0x[0-9a-fA-F]{40}$
-
storageKeys
array<string>required32 byte hex value
Match pattern:
^0x[0-9a-f]{64}$
-
additionalProperties
false
-
-
blobVersionedHashes
array<string>EIP-4844 versioned hashes Default: []
Match pattern:
^0x[0-9a-f]{64}$
-
from
stringDefault: 0x0
Match pattern:
^0x[0-9a-fA-F]{40}$
-
gas
stringDefault: Remaining gas in the current block
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,15})$
-
gasPrice
stringThe gas price willing to be paid by the sender in wei Default: 0
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,63})$
-
input
stringDefault: no data
Match pattern:
^0x([0-9a-f]{2})*$
-
maxFeePerBlobGas
stringThe maximum total fee per blob gas the sender is willing to pay in wei Default: 0
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,63})$
-
maxFeePerGas
stringThe maximum total fee per gas the sender is willing to pay (includes the network / base fee and miner / priority fee) in wei Default: 0
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,63})$
-
maxPriorityFeePerGas
stringMaximum fee per gas the sender is willing to pay to miners in wei Default: 0
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,63})$
-
nonce
stringDefault: Defaults to correct nonce
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,15})$
-
to
stringDefault: null
Match pattern:
^0x[0-9a-fA-F]{40}$
-
type
stringDefault: 0x2
Match pattern:
^0x[0-9a-f]{1,2}$
-
value
stringDefault: 0
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,63})$
-
additionalProperties
true
-
-
stateOverrides
objectState overrides can be used to replace existing blockchain state with new state. Account state changes (nonce, balance, code, state, stateDiff) persist into subsequent blocks of the simulation. Precompile table changes (movePrecompileToAddress, and replacing a precompile with code) apply only to the block in which they are specified; each simulated block starts with the active precompiles of its fork before applying its own stateOverrides. In a later block that does not override that address again, an EIP-7702 delegation to that precompile address runs empty code, although the code stays in the state. Default: no state overrides
Show
stateOverridesobjectstateOverridesfieldsState overrides can be used to replace existing blockchain state with new state. Account state changes (nonce, balance, code, state, stateDiff) persist into subsequent blocks of the simulation. Precompile table changes (movePrecompileToAddress, and replacing a precompile with code) apply only to the block in which they are specified; each simulated block starts with the active precompiles of its fork before applying its own stateOverrides. In a later block that does not override that address again, an EIP-7702 delegation to that precompile address runs empty code, although the code stays in the state. Default: no state overrides
-
^0x[a-fA-F0-9]{40}$
objectIt is possible to override any kind of address (EOA's, contracts and precompiles). A
codeoverride on a precompile address replaces the precompile. A client MUST reject a key that it does not support with error code -32602. A client MAY treat a key that differs from a key defined in this schema only in case as that defined key. It MUST then apply the key, and MUST reject two keys that differ only in case and name the same defined key with error code -32602. A client MAY support other keys that this schema does not define.
Show
^0x[a-fA-F0-9]{40}$object^0x[a-fA-F0-9]{40}$fieldsIt is possible to override any kind of address (EOA's, contracts and precompiles). A
codeoverride on a precompile address replaces the precompile. A client MUST reject a key that it does not support with error code -32602. A client MAY treat a key that differs from a key defined in this schema only in case as that defined key. It MUST then apply the key, and MUST reject two keys that differ only in case and name the same defined key with error code -32602. A client MAY support other keys that this schema does not define.-
balance
stringBalance
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,63})$
-
code
stringCode
Match pattern:
^0x([0-9a-f]{2})*$
-
movePrecompileToAddress
stringMoves addresses precompile into the specified address. This move is done before the 'code' override is set. Can only move precompiles. The move does not change the EIP-2929 set of addresses that are warm at the start of each call. That set keeps the precompile addresses of the active fork, and the destination address is not warm because of the move.
Match pattern:
^0x[0-9a-fA-F]{40}$
-
nonce
stringNonce
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,15})$
-
state
objectKey-value mapping to override all slots in the account storage before executing the call. This functions similar to eth_call's state parameter.
Show
stateobjectstatefieldsKey-value mapping to override all slots in the account storage before executing the call. This functions similar to eth_call's state parameter.
-
^0x[a-fA-F0-9]{64}$
string32 byte hex value
Match pattern:
^0x[0-9a-f]{64}$
-
-
stateDiff
objectKey-value mapping to override individual slots in the account storage before executing the call. This functions similar to eth_call's state parameter.
Show
stateDiffobjectstateDifffieldsKey-value mapping to override individual slots in the account storage before executing the call. This functions similar to eth_call's state parameter.
-
^0x[a-fA-F0-9]{64}$
string32 byte hex value
Match pattern:
^0x[0-9a-f]{64}$
-
-
additionalProperties
true
-
-
-
additionalProperties
true
-
-
returnFullTransactions
booleanWhen true, the method returns full transaction objects, otherwise, just hashes are returned.
-
traceTransfers
booleanAdds ETH transfers as ERC20 transfer events to the logs. These transfers have emitter contract parameter set as address(0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee). In blocks where EIP-7708 is active, no synthetic transfer events are added. The protocol transfer logs emitted from address(0xfffffffffffffffffffffffffffffffffffffffe) cover the same transfers with the same topics and data, and the flag has no effect. The flag is deprecated for these blocks. Default: false.
-
validation
booleanWhen true, the eth_simulateV1 does all validations that a normal EVM would do, except contract sender and signature checks. When false, eth_simulateV1 behaves like eth_call. Default: false.
-
additionalProperties
true
Block tag string or string or string or object or object
default: 'latest'. The base block. The simulated blocks start from the state after this block has been executed.
Show Option 1 Block number string
Block number stringBlock number fields
default: 'latest'. The base block. The simulated blocks start from the state after this block has been executed.
Block tag string
default: 'latest'. The base block. The simulated blocks start from the state after this block has been executed.
Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$
Show Option 2 Block tag string
Block tag stringBlock tag fields
earliest: The lowest numbered block the client has available; finalized: The most recent crypto-economically secure block, cannot be re-orged outside of manual intervention driven by community coordination; safe: The most recent block that is safe from re-orgs under honest majority and certain synchronicity assumptions; latest: The most recent block in the canonical chain observed by the client, this block may be re-orged out of the canonical chain even under healthy/normal conditions; pending: A sample next block built by the client on top of latest and containing the set of transactions usually taken from local mempool. If the safe or finalized tag cannot be resolved to a block, the method responds as it does for an unknown block.
Block tag string
default: 'latest'. The base block. The simulated blocks start from the state after this block has been executed.
Allowed values: earliest finalized safe latest pending
Show Option 3 Block hash string
Block hash stringBlock hash fields
default: 'latest'. The base block. The simulated blocks start from the state after this block has been executed.
Block tag string
default: 'latest'. The base block. The simulated blocks start from the state after this block has been executed.
Match pattern: ^0x[0-9a-f]{64}$
Show Option 4 EIP-1898 block number object object
EIP-1898 block number object objectEIP-1898 block number object fields
default: 'latest'. The base block. The simulated blocks start from the state after this block has been executed.
Block tag object
default: 'latest'. The base block. The simulated blocks start from the state after this block has been executed.
Show Block tag object
Block tag objectBlock tag fields
default: 'latest'. The base block. The simulated blocks start from the state after this block has been executed.
-
blockNumber
stringrequiredBlock number
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
additionalProperties
false
Show Option 5 EIP-1898 block hash object object
EIP-1898 block hash object objectEIP-1898 block hash object fields
default: 'latest'. The base block. The simulated blocks start from the state after this block has been executed.
Block tag object
default: 'latest'. The base block. The simulated blocks start from the state after this block has been executed.
Show Block tag object
Block tag objectBlock tag fields
default: 'latest'. The base block. The simulated blocks start from the state after this block has been executed.
-
blockHash
stringrequiredBlock hash
Match pattern:
^0x[0-9a-f]{64}$
-
requireCanonical
booleanWhether the block hash must belong to a canonical block, defaulting to
false. Whentrueand the referenced block is not canonical, EIP-1898 recommends-32000: Invalid input. A block that cannot be found takes precedence and is reported as-32001: Resource not found.
-
additionalProperties
false
Result
Result of calls array<object>
A simulated block carries every header field that a real block carries at the fork active for that block, including blockAccessListHash and slotNumber after Amsterdam. The only exception is slotNumber, which is omitted when the parent block has none. Header fields that the simulation cannot derive take the default values documented in the eth_simulateV1 notes.
Show Result of calls object
Result of calls objectResult of calls fields
-
baseFeePerGas
stringBase fee per gas
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
blobGasUsed
stringBlob gas used
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
blockAccessListHash
stringEIP-7928 block access list hash
Match pattern:
^0x[0-9a-f]{64}$
-
calls
object or objectrequired
Show Option 1
Result of call failureobjectResult of call failurefieldsThe error codes are enforced by the spec. A revert message starts with "execution reverted". Other error messages are client-specific text.
calls
array<object>requiredThe error codes are enforced by the spec. A revert message starts with "execution reverted". Other error messages are client-specific text.
Show
callsobjectcallsfields-
error
object or objectrequired
-
gasUsed
stringrequiredReturn gasUsed
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,15})$
-
maxUsedGas
stringMaximum gas used during execution before refunds
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,15})$
-
returnData
stringrequiredReturn data
Match pattern:
^0x([0-9a-f]{2})*$
-
status
stringrequiredCall Status Failure
Match pattern:
^0x0$
-
additionalProperties
true
Show Option 2
Result of call successobjectResult of call successfieldscalls
array<object>requiredResult of call success
Show
callsobjectcallsfields-
gasUsed
stringrequiredReturn gasUsed
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,15})$
-
logs
array<object>requiredlog
Show
logsobjectlogsfields-
address
stringrequiredaddress
Match pattern:
^0x[0-9a-fA-F]{40}$
-
blockHash
stringblock hash
Match pattern:
^0x[0-9a-f]{64}$
-
blockNumber
stringblock number
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
blockTimestamp
stringblock timestamp
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
data
stringrequireddata
Match pattern:
^0x([0-9a-f]{2})*$
-
logIndex
stringlog index
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
removed
booleanremoved
-
topics
array<string>required32 hex encoded bytes
Match pattern:
^0x[0-9a-f]{64}$
-
transactionHash
stringrequiredtransaction hash
Match pattern:
^0x[0-9a-f]{64}$
-
transactionIndex
stringtransaction index
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
additionalProperties
false
-
-
maxUsedGas
stringMaximum gas used during execution before refunds
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,15})$
-
returnData
stringrequiredReturn data
Match pattern:
^0x([0-9a-f]{2})*$
-
status
stringrequiredCall Status Success
Match pattern:
^0x1$
-
additionalProperties
true
-
-
difficulty
stringDifficulty
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
excessBlobGas
stringExcess blob gas
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
extraData
stringrequiredExtra data
Match pattern:
^0x([0-9a-f]{2})*$
-
gasLimit
stringrequiredGas limit
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
gasUsed
stringrequiredGas used
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
hash
stringrequiredHash
Match pattern:
^0x[0-9a-f]{64}$
-
logsBloom
stringrequiredBloom filter
Match pattern:
^0x[0-9a-f]{512}$
-
miner
stringrequiredCoinbase
Match pattern:
^0x[0-9a-fA-F]{40}$
-
mixHash
stringrequiredMix hash
Match pattern:
^0x[0-9a-f]{64}$
-
nonce
stringrequiredNonce
Match pattern:
^0x[0-9a-f]{16}$
-
number
stringrequiredNumber
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
parentBeaconBlockRoot
stringParent Beacon Block Root
Match pattern:
^0x[0-9a-f]{64}$
-
parentHash
stringrequiredParent block hash
Match pattern:
^0x[0-9a-f]{64}$
-
receiptsRoot
stringrequiredReceipts root
Match pattern:
^0x[0-9a-f]{64}$
-
requestsHash
stringEIP-7685 requests hash
Match pattern:
^0x[0-9a-f]{64}$
-
sha3Uncles
stringrequiredOmmers hash
Match pattern:
^0x[0-9a-f]{64}$
-
size
stringrequiredBlock size
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
slotNumber
stringEIP-7843 slot number
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,15})$
-
stateRoot
stringrequiredState root
Match pattern:
^0x[0-9a-f]{64}$
-
timestamp
stringrequiredTimestamp
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
transactions
array<string> or array<object>required
Show Option 1
Transaction hashesarrayTransaction hashesfieldstransactions
array<string>required32 byte hex value
Match pattern:
^0x[0-9a-f]{64}$Show Option 2
Full transactionsarrayFull transactionsfieldstransactions
object or object or object or object or objectrequiredShow Option 1
Signed 7702 TransactionobjectSigned 7702 Transactionfieldstransactions
array<object>requiredSigned 7702 Transaction
Show
transactionsobjecttransactionsfields-
accessList
array<object>requiredEIP-2930 access lists
Show
accessListobjectaccessListfieldsEIP-2930 access lists
-
address
stringrequiredhex encoded address
Match pattern:
^0x[0-9a-fA-F]{40}$
-
storageKeys
array<string>required32 byte hex value
Match pattern:
^0x[0-9a-f]{64}$
-
additionalProperties
false
-
-
authorizationList
array<object>requiredList of authorizations for the transaction
Show
authorizationListobjectauthorizationListfieldsList of authorizations for the transaction
-
address
stringrequiredhex encoded address
Match pattern:
^0x[0-9a-fA-F]{40}$
-
chainId
stringrequiredChain ID on which this transaction is valid
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,63})$
-
nonce
stringrequirednonce
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,15})$
-
r
stringrequiredr
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,63})$
-
s
stringrequireds
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,63})$
-
yParity
stringrequiredThe parity (0 for even, 1 for odd) of the y-value of the secp256k1 signature
Match pattern:
^0x[0-9a-f]{1,2}$
-
additionalProperties
true
-
-
chainId
stringrequiredChain ID that this transaction is valid on
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
gas
stringrequiredgas limit
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
gasPrice
stringThe effective gas price paid by the sender in wei. For transactions not yet included in a block, this value should be set equal to the max fee per gas. This field is DEPRECATED, please transition to using effectiveGasPrice in the receipt object going forward.
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
input
stringrequiredinput data
Match pattern:
^0x([0-9a-f]{2})*$
-
maxFeePerGas
stringrequiredThe maximum total fee per gas the sender is willing to pay (includes the network / base fee and miner / priority fee) in wei
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
maxPriorityFeePerGas
stringrequiredMaximum fee per gas the sender is willing to pay to miners in wei
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
nonce
stringrequirednonce
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
r
stringrequiredr
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
s
stringrequireds
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
to
stringrequiredto address
Match pattern:
^0x[0-9a-fA-F]{40}$
-
type
stringrequiredtype
Match pattern:
^0x4$
-
v
stringFor backwards compatibility,
vis optionally provided as an alternative toyParity. This field is DEPRECATED and all use of it should migrate toyParity.Match pattern:
^0x[0-9a-f]{1,2}$
-
value
stringrequiredvalue
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
yParity
stringrequiredThe parity (0 for even, 1 for odd) of the y-value of the secp256k1 signature.
Match pattern:
^0x[0-9a-f]{1,2}$
-
additionalProperties
true
Show Option 2
Signed 4844 TransactionobjectSigned 4844 Transactionfieldstransactions
array<object>requiredSigned 4844 Transaction
Show
transactionsobjecttransactionsfields-
accessList
array<object>requiredEIP-2930 access list
Show
accessListobjectaccessListfieldsEIP-2930 access list
-
address
stringrequiredhex encoded address
Match pattern:
^0x[0-9a-fA-F]{40}$
-
storageKeys
array<string>required32 byte hex value
Match pattern:
^0x[0-9a-f]{64}$
-
additionalProperties
false
-
-
blobVersionedHashes
array<string>requiredList of versioned blob hashes associated with the transaction's EIP-4844 data blobs
Match pattern:
^0x[0-9a-f]{64}$
-
chainId
stringrequiredChain ID that this transaction is valid on
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
gas
stringrequiredgas limit
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
gasPrice
stringThe effective gas price paid by the sender in wei. For transactions not yet included in a block, this value should be set equal to the max fee per gas. This field is DEPRECATED, please transition to using effectiveGasPrice in the receipt object going forward.
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
input
stringrequiredinput data
Match pattern:
^0x([0-9a-f]{2})*$
-
maxFeePerBlobGas
stringrequiredThe maximum total fee per gas the sender is willing to pay for blob gas in wei
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
maxFeePerGas
stringrequiredThe maximum total fee per gas the sender is willing to pay (includes the network / base fee and miner / priority fee) in wei
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
maxPriorityFeePerGas
stringrequiredMaximum fee per gas the sender is willing to pay to miners in wei
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
nonce
stringrequirednonce
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
r
stringrequiredr
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
s
stringrequireds
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
to
stringrequiredto address
Match pattern:
^0x[0-9a-fA-F]{40}$
-
type
stringrequiredtype
Match pattern:
^0x3$
-
v
stringFor backwards compatibility,
vis optionally provided as an alternative toyParity. This field is DEPRECATED and all use of it should migrate toyParity.Match pattern:
^0x[0-9a-f]{1,2}$
-
value
stringrequiredvalue
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
yParity
stringrequiredThe parity (0 for even, 1 for odd) of the y-value of the secp256k1 signature.
Match pattern:
^0x[0-9a-f]{1,2}$
-
additionalProperties
true
Show Option 3
Signed 1559 TransactionobjectSigned 1559 Transactionfieldstransactions
array<object>requiredSigned 1559 Transaction
Show
transactionsobjecttransactionsfields-
accessList
array<object>requiredEIP-2930 access list
Show
accessListobjectaccessListfieldsEIP-2930 access list
-
address
stringrequiredhex encoded address
Match pattern:
^0x[0-9a-fA-F]{40}$
-
storageKeys
array<string>required32 byte hex value
Match pattern:
^0x[0-9a-f]{64}$
-
additionalProperties
false
-
-
chainId
stringrequiredChain ID that this transaction is valid on.
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
gas
stringrequiredgas limit
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
gasPrice
stringrequiredThe effective gas price paid by the sender in wei. For transactions not yet included in a block, this value should be set equal to the max fee per gas. This field is DEPRECATED, please transition to using effectiveGasPrice in the receipt object going forward.
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
input
stringrequiredinput data
Match pattern:
^0x([0-9a-f]{2})*$
-
maxFeePerGas
stringrequiredThe maximum total fee per gas the sender is willing to pay (includes the network / base fee and miner / priority fee) in wei
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
maxPriorityFeePerGas
stringrequiredMaximum fee per gas the sender is willing to pay to miners in wei
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
nonce
stringrequirednonce
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
r
stringrequiredr
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
s
stringrequireds
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
to
null or string
Show Option 1
Contract Creation (null)nullShow Option 2
Addressstring -
type
stringrequiredtype
Match pattern:
^0x2$
-
v
stringFor backwards compatibility,
vis optionally provided as an alternative toyParity. This field is DEPRECATED and all use of it should migrate toyParity.Match pattern:
^0x[0-9a-f]{1,2}$
-
value
stringrequiredvalue
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
yParity
stringrequiredThe parity (0 for even, 1 for odd) of the y-value of the secp256k1 signature.
Match pattern:
^0x[0-9a-f]{1,2}$
-
additionalProperties
true
Show Option 4
Signed 2930 TransactionobjectSigned 2930 Transactionfieldstransactions
array<object>requiredSigned 2930 Transaction
Show
transactionsobjecttransactionsfields-
accessList
array<object>requiredEIP-2930 access list
Show
accessListobjectaccessListfieldsEIP-2930 access list
-
address
stringrequiredhex encoded address
Match pattern:
^0x[0-9a-fA-F]{40}$
-
storageKeys
array<string>required32 byte hex value
Match pattern:
^0x[0-9a-f]{64}$
-
additionalProperties
false
-
-
chainId
stringrequiredChain ID that this transaction is valid on.
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
gas
stringrequiredgas limit
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
gasPrice
stringrequiredThe gas price willing to be paid by the sender in wei
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
input
stringrequiredinput data
Match pattern:
^0x([0-9a-f]{2})*$
-
nonce
stringrequirednonce
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
r
stringrequiredr
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
s
stringrequireds
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
to
null or string
Show Option 1
Contract Creation (null)nullShow Option 2
Addressstring -
type
stringrequiredtype
Match pattern:
^0x1$
-
v
stringFor backwards compatibility,
vis optionally provided as an alternative toyParity. This field is DEPRECATED and all use of it should migrate toyParity.Match pattern:
^0x[0-9a-f]{1,2}$
-
value
stringrequiredvalue
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
yParity
stringrequiredThe parity (0 for even, 1 for odd) of the y-value of the secp256k1 signature.
Match pattern:
^0x[0-9a-f]{1,2}$
-
additionalProperties
true
Show Option 5
Signed Legacy TransactionobjectSigned Legacy Transactionfieldstransactions
array<object>requiredSigned Legacy Transaction
Show
transactionsobjecttransactionsfields-
chainId
stringChain ID that this transaction is valid on.
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
gas
stringrequiredgas limit
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
gasPrice
stringrequiredThe gas price willing to be paid by the sender in wei
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
input
stringrequiredinput data
Match pattern:
^0x([0-9a-f]{2})*$
-
nonce
stringrequirednonce
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
r
stringrequiredr
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
s
stringrequireds
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
to
null or string
Show Option 1
Contract Creation (null)nullShow Option 2
Addressstring -
type
stringrequiredtype
Match pattern:
^0x0$
-
v
stringrequiredv
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
value
stringrequiredvalue
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$
-
additionalProperties
true
-
-
transactionsRoot
stringrequiredTransactions root
Match pattern:
^0x[0-9a-f]{64}$
-
uncles
array<string>required32 byte hex value
Match pattern:
^0x[0-9a-f]{64}$
-
withdrawals
array<object>Validator withdrawal
Show
withdrawalsobjectwithdrawalsfields-
address
stringrequiredrecipient address for withdrawal value
Match pattern:
^0x[0-9a-fA-F]{40}$
-
amount
stringrequiredvalue contained in withdrawal, in Gwei
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,15})$
-
index
stringrequiredindex of withdrawal
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,15})$
-
validatorIndex
stringrequiredindex of validator that generated withdrawal
Match pattern:
^0x(0|[1-9a-f][0-9a-f]{0,15})$
-
additionalProperties
false
-
-
withdrawalsRoot
stringWithdrawals root
Match pattern:
^0x[0-9a-f]{64}$
-
additionalProperties
true
Errors
Error code: -32000
-
code
-32000
-
message
Invalid request
Error code: -32602
-
code
-32602
-
message
Missing or invalid parameters
Error code: -32005
-
code
-32005
-
message
Transactions maxFeePerGas is too low
Error code: -32015
-
code
-32015
-
message
Execution error
Error code: -32016
-
code
-32016
-
message
Timeout
Error code: -32603
-
code
-32603
-
message
The Ethereum node encountered an internal error
Error code: -38010
-
code
-38010
-
message
Transactions nonce is too low
Error code: -38011
-
code
-38011
-
message
Transactions nonce is too high
Error code: -38012
-
code
-38012
-
message
Transactions baseFeePerGas is too low
Error code: -38013
-
code
-38013
-
message
Not enough gas provided to pay for intrinsic gas for a transaction
Error code: -38014
-
code
-38014
-
message
Insufficient funds to pay for gas fees and value for a transaction
Error code: -38015
-
code
-38015
-
message
Block gas limit exceeded by the block's transactions
Error code: -38020
-
code
-38020
-
message
Block number in sequence did not increase
Error code: -38021
-
code
-38021
-
message
Block timestamp in sequence did not increase
Error code: -38022
-
code
-38022
-
message
MovePrecompileToAddress referenced itself in replacement
Error code: -38025
-
code
-38025
-
message
Max init code size exceeded
Error code: -38026
-
code
-38026
-
message
Client adjustable limit exceeded
Examples
eth_simulateV1 simple transfer
Request
{
"params": [
{
"blockStateCalls": [
{
"calls": [
{
"from": "0xc000000000000000000000000000000000000000",
"to": "0xc100000000000000000000000000000000000000",
"value": "0x3e8"
},
{
"from": "0xc100000000000000000000000000000000000000",
"to": "0xc200000000000000000000000000000000000000",
"value": "0x3e8"
}
],
"stateOverrides": {
"0xc000000000000000000000000000000000000000": {
"balance": "0x3e8"
}
}
}
]
},
"latest"
]
}
Response
[
{
"baseFeePerGas": "0x0",
"blobGasUsed": "0x0",
"calls": [
{
"gasUsed": "0x5208",
"logs": [],
"maxUsedGas": "0x5208",
"returnData": "0x",
"status": "0x1"
},
{
"gasUsed": "0x5208",
"logs": [],
"maxUsedGas": "0x5208",
"returnData": "0x",
"status": "0x1"
}
],
"difficulty": "0x0",
"excessBlobGas": "0x0",
"extraData": "0x",
"gasLimit": "0xbebc200",
"gasUsed": "0xa410",
"hash": "0xdb785f2444d7f68bc2bc04860c27ad059217192d17e2889ec801bcae9209b204",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"miner": "0x0000000000000000000000000000000000000000",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x0000000000000000",
"number": "0x37",
"parentBeaconBlockRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
"parentHash": "0xd226371d0b1551adb03fb52b71f08e3e11247fe9b1af994768af8cdaa8e7dcd7",
"receiptsRoot": "0x75308898d571eafb5cd8cde8278bf5b3d13c5f6ec074926de3bb895b519264e1",
"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size": "0x2c5",
"stateRoot": "0x026d07e9a1fb2c8e737ede84b4d70fd2c3be2872646b9ff1d13c215eb81354e5",
"timestamp": "0x228",
"transactions": [
"0xf1c5abb08809ef760f87aeabe7a87284c60797192dab6d2f0d26c27c9c038e9d",
"0xbc123d32ae457d4a444af60d1aef663c2f4a77c44a52bec0eef8ac81b53549cb"
],
"transactionsRoot": "0x6d79cfd6f20bf10a0b3831acf15402528b00992cb9a71302596de7fbb4ebfb07",
"uncles": [],
"withdrawals": [],
"withdrawalsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"
}
]