Skip to main content
Version: Next

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 fields​

  • blockStateCalls array<object>

    Definition of blocks that can contain calls and overrides


    Show blockStateCalls object

    blockStateCalls fields​

    Definition of blocks that can contain calls and overrides

    • blockOverrides object

      Block overrides can be used to replace fields in a block. default: no block override.


      Show blockOverrides object

      blockOverrides fields​

      Block overrides can be used to replace fields in a block. default: no block override.

      • baseFeePerGas string

        Base fee per unit of gas

        Match pattern: ^0x(0|[1-9a-f][0-9a-f]{0,63})$


      • blobBaseFee string

        Base fee per unit of blob gas

        Match pattern: ^0x(0|[1-9a-f][0-9a-f]{0,15})$


      • feeRecipient string

        Coinbase of the simulated block. The block's miner field 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 string

        Gas limit

        Match pattern: ^0x(0|[1-9a-f][0-9a-f]{0,15})$


      • number string

        When 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 string

        The Previous value of randomness beacon

        Match pattern: ^0x[0-9a-f]{64}$


      • time string

        Time 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 withdrawals object

        withdrawals fields​

        This array can have a maximum length of 16.

        • address string required

          recipient address for withdrawal value

          Match pattern: ^0x[0-9a-fA-F]{40}$


        • amount string required

          value contained in withdrawal, in Gwei

          Match pattern: ^0x(0|[1-9a-f][0-9a-f]{0,15})$


        • index string required

          index of withdrawal

          Match pattern: ^0x(0|[1-9a-f][0-9a-f]{0,15})$


        • validatorIndex string required

          index 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 calls object

      calls fields​

      List of transactions to execute at this block/state. Default: []

      • accessList array<object>

        EIP-2930 access list Default: []


        Show accessList object

        accessList fields​

        EIP-2930 access list Default: []

        • address string required

          hex encoded address

          Match pattern: ^0x[0-9a-fA-F]{40}$


        • storageKeys array<string> required

          32 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 string

        Default: 0x0

        Match pattern: ^0x[0-9a-fA-F]{40}$


      • gas string

        Default: Remaining gas in the current block

        Match pattern: ^0x(0|[1-9a-f][0-9a-f]{0,15})$


      • gasPrice string

        The 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 string

        Default: no data

        Match pattern: ^0x([0-9a-f]{2})*$


      • maxFeePerBlobGas string

        The 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 string

        The 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 string

        Maximum 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 string

        Default: Defaults to correct nonce

        Match pattern: ^0x(0|[1-9a-f][0-9a-f]{0,15})$


      • to string

        Default: null

        Match pattern: ^0x[0-9a-fA-F]{40}$


      • type string

        Default: 0x2

        Match pattern: ^0x[0-9a-f]{1,2}$


      • value string

        Default: 0

        Match pattern: ^0x(0|[1-9a-f][0-9a-f]{0,63})$


      • additionalProperties true


    • stateOverrides object

      State 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 stateOverrides object

      stateOverrides fields​

      State 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}$ object

        It is possible to override any kind of address (EOA's, contracts and precompiles). A code override 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}$ fields​

        It is possible to override any kind of address (EOA's, contracts and precompiles). A code override 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 string

          Balance

          Match pattern: ^0x(0|[1-9a-f][0-9a-f]{0,63})$


        • code string

          Code

          Match pattern: ^0x([0-9a-f]{2})*$


        • movePrecompileToAddress string

          Moves 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 string

          Nonce

          Match pattern: ^0x(0|[1-9a-f][0-9a-f]{0,15})$


        • state object

          Key-value mapping to override all slots in the account storage before executing the call. This functions similar to eth_call's state parameter.


          Show state object

          state fields​

          Key-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}$ string

            32 byte hex value

            Match pattern: ^0x[0-9a-f]{64}$


        • stateDiff object

          Key-value mapping to override individual slots in the account storage before executing the call. This functions similar to eth_call's state parameter.


          Show stateDiff object

          stateDiff fields​

          Key-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}$ string

            32 byte hex value

            Match pattern: ^0x[0-9a-f]{64}$


        • additionalProperties true


    • additionalProperties true


  • returnFullTransactions boolean

    When true, the method returns full transaction objects, otherwise, just hashes are returned.


  • traceTransfers boolean

    Adds 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 boolean

    When 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 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 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 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 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 fields​

default: 'latest'. The base block. The simulated blocks start from the state after this block has been executed.

  • blockNumber string required

    Block 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 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 fields​

default: 'latest'. The base block. The simulated blocks start from the state after this block has been executed.

  • blockHash string required

    Block hash

    Match pattern: ^0x[0-9a-f]{64}$


  • requireCanonical boolean

    Whether the block hash must belong to a canonical block, defaulting to false. When true and 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 fields​

  • baseFeePerGas string

    Base fee per gas

    Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


  • blobGasUsed string

    Blob gas used

    Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


  • blockAccessListHash string

    EIP-7928 block access list hash

    Match pattern: ^0x[0-9a-f]{64}$


  • calls object or object required


    Show Option 1 Result of call failure object

    Result of call failure fields​

    The error codes are enforced by the spec. A revert message starts with "execution reverted". Other error messages are client-specific text.

    calls array<object> required

    The error codes are enforced by the spec. A revert message starts with "execution reverted". Other error messages are client-specific text.


    Show calls object

    calls fields​

    • error object or object required


      Show Option 1 error object

      error fields​

      error object required


      Show error object

      error fields​

      • data string required

        Raw EVM revert data

        Match pattern: ^0x([0-9a-f]{2})*$


      • message string required

        Match pattern: ^execution reverted.*


      • additionalProperties false


      Show Option 2 error object

      error fields​

      error object required


      Show error object

      error fields​

      • message string required


      • additionalProperties false


    • gasUsed string required

      Return gasUsed

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]{0,15})$


    • maxUsedGas string

      Maximum gas used during execution before refunds

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]{0,15})$


    • returnData string required

      Return data

      Match pattern: ^0x([0-9a-f]{2})*$


    • status string required

      Call Status Failure

      Match pattern: ^0x0$


    • additionalProperties true


    Show Option 2 Result of call success object

    Result of call success fields​

    calls array<object> required

    Result of call success


    Show calls object

    calls fields​

    • gasUsed string required

      Return gasUsed

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]{0,15})$


    • logs array<object> required

      log


      Show logs object

      logs fields​

      • address string required

        address

        Match pattern: ^0x[0-9a-fA-F]{40}$


      • blockHash string

        block hash

        Match pattern: ^0x[0-9a-f]{64}$


      • blockNumber string

        block number

        Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


      • blockTimestamp string

        block timestamp

        Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


      • data string required

        data

        Match pattern: ^0x([0-9a-f]{2})*$


      • logIndex string

        log index

        Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


      • removed boolean

        removed


      • topics array<string> required

        32 hex encoded bytes

        Match pattern: ^0x[0-9a-f]{64}$


      • transactionHash string required

        transaction hash

        Match pattern: ^0x[0-9a-f]{64}$


      • transactionIndex string

        transaction index

        Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


      • additionalProperties false


    • maxUsedGas string

      Maximum gas used during execution before refunds

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]{0,15})$


    • returnData string required

      Return data

      Match pattern: ^0x([0-9a-f]{2})*$


    • status string required

      Call Status Success

      Match pattern: ^0x1$


    • additionalProperties true


  • difficulty string

    Difficulty

    Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


  • excessBlobGas string

    Excess blob gas

    Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


  • extraData string required

    Extra data

    Match pattern: ^0x([0-9a-f]{2})*$


  • gasLimit string required

    Gas limit

    Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


  • gasUsed string required

    Gas used

    Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


  • hash string required

    Hash

    Match pattern: ^0x[0-9a-f]{64}$


  • logsBloom string required

    Bloom filter

    Match pattern: ^0x[0-9a-f]{512}$


  • miner string required

    Coinbase

    Match pattern: ^0x[0-9a-fA-F]{40}$


  • mixHash string required

    Mix hash

    Match pattern: ^0x[0-9a-f]{64}$


  • nonce string required

    Nonce

    Match pattern: ^0x[0-9a-f]{16}$


  • number string required

    Number

    Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


  • parentBeaconBlockRoot string

    Parent Beacon Block Root

    Match pattern: ^0x[0-9a-f]{64}$


  • parentHash string required

    Parent block hash

    Match pattern: ^0x[0-9a-f]{64}$


  • receiptsRoot string required

    Receipts root

    Match pattern: ^0x[0-9a-f]{64}$


  • requestsHash string

    EIP-7685 requests hash

    Match pattern: ^0x[0-9a-f]{64}$


  • sha3Uncles string required

    Ommers hash

    Match pattern: ^0x[0-9a-f]{64}$


  • size string required

    Block size

    Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


  • slotNumber string

    EIP-7843 slot number

    Match pattern: ^0x(0|[1-9a-f][0-9a-f]{0,15})$


  • stateRoot string required

    State root

    Match pattern: ^0x[0-9a-f]{64}$


  • timestamp string required

    Timestamp

    Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


  • transactions array<string> or array<object> required


    Show Option 1 Transaction hashes array

    Transaction hashes fields​

    transactions array<string> required

    32 byte hex value

    Match pattern: ^0x[0-9a-f]{64}$


    Show Option 2 Full transactions array

    Full transactions fields​

    transactions object or object or object or object or object required


    Show Option 1 Signed 7702 Transaction object

    Signed 7702 Transaction fields​

    transactions array<object> required

    Signed 7702 Transaction


    Show transactions object

    transactions fields​

    • accessList array<object> required

      EIP-2930 access lists


      Show accessList object

      accessList fields​

      EIP-2930 access lists

      • address string required

        hex encoded address

        Match pattern: ^0x[0-9a-fA-F]{40}$


      • storageKeys array<string> required

        32 byte hex value

        Match pattern: ^0x[0-9a-f]{64}$


      • additionalProperties false


    • authorizationList array<object> required

      List of authorizations for the transaction


      Show authorizationList object

      authorizationList fields​

      List of authorizations for the transaction

      • address string required

        hex encoded address

        Match pattern: ^0x[0-9a-fA-F]{40}$


      • chainId string required

        Chain ID on which this transaction is valid

        Match pattern: ^0x(0|[1-9a-f][0-9a-f]{0,63})$


      • nonce string required

        nonce

        Match pattern: ^0x(0|[1-9a-f][0-9a-f]{0,15})$


      • r string required

        r

        Match pattern: ^0x(0|[1-9a-f][0-9a-f]{0,63})$


      • s string required

        s

        Match pattern: ^0x(0|[1-9a-f][0-9a-f]{0,63})$


      • yParity string required

        The 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 string required

      Chain ID that this transaction is valid on

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • gas string required

      gas limit

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • gasPrice string

      The 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 string required

      input data

      Match pattern: ^0x([0-9a-f]{2})*$


    • maxFeePerGas string required

      The 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 string required

      Maximum fee per gas the sender is willing to pay to miners in wei

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • nonce string required

      nonce

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • r string required

      r

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • s string required

      s

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • to string required

      to address

      Match pattern: ^0x[0-9a-fA-F]{40}$


    • type string required

      type

      Match pattern: ^0x4$


    • v string

      For backwards compatibility, v is optionally provided as an alternative to yParity. This field is DEPRECATED and all use of it should migrate to yParity.

      Match pattern: ^0x[0-9a-f]{1,2}$


    • value string required

      value

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • yParity string required

      The 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 Transaction object

    Signed 4844 Transaction fields​

    transactions array<object> required

    Signed 4844 Transaction


    Show transactions object

    transactions fields​

    • accessList array<object> required

      EIP-2930 access list


      Show accessList object

      accessList fields​

      EIP-2930 access list

      • address string required

        hex encoded address

        Match pattern: ^0x[0-9a-fA-F]{40}$


      • storageKeys array<string> required

        32 byte hex value

        Match pattern: ^0x[0-9a-f]{64}$


      • additionalProperties false


    • blobVersionedHashes array<string> required

      List of versioned blob hashes associated with the transaction's EIP-4844 data blobs

      Match pattern: ^0x[0-9a-f]{64}$


    • chainId string required

      Chain ID that this transaction is valid on

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • gas string required

      gas limit

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • gasPrice string

      The 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 string required

      input data

      Match pattern: ^0x([0-9a-f]{2})*$


    • maxFeePerBlobGas string required

      The 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 string required

      The 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 string required

      Maximum fee per gas the sender is willing to pay to miners in wei

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • nonce string required

      nonce

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • r string required

      r

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • s string required

      s

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • to string required

      to address

      Match pattern: ^0x[0-9a-fA-F]{40}$


    • type string required

      type

      Match pattern: ^0x3$


    • v string

      For backwards compatibility, v is optionally provided as an alternative to yParity. This field is DEPRECATED and all use of it should migrate to yParity.

      Match pattern: ^0x[0-9a-f]{1,2}$


    • value string required

      value

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • yParity string required

      The 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 Transaction object

    Signed 1559 Transaction fields​

    transactions array<object> required

    Signed 1559 Transaction


    Show transactions object

    transactions fields​

    • accessList array<object> required

      EIP-2930 access list


      Show accessList object

      accessList fields​

      EIP-2930 access list

      • address string required

        hex encoded address

        Match pattern: ^0x[0-9a-fA-F]{40}$


      • storageKeys array<string> required

        32 byte hex value

        Match pattern: ^0x[0-9a-f]{64}$


      • additionalProperties false


    • chainId string required

      Chain ID that this transaction is valid on.

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • gas string required

      gas limit

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • gasPrice string required

      The 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 string required

      input data

      Match pattern: ^0x([0-9a-f]{2})*$


    • maxFeePerGas string required

      The 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 string required

      Maximum fee per gas the sender is willing to pay to miners in wei

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • nonce string required

      nonce

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • r string required

      r

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • s string required

      s

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • to null or string


      Show Option 1 Contract Creation (null) null

      Contract Creation (null) fields​

      to null

      Contract Creation (null)


      Show Option 2 Address string

      Address fields​

      to string

      Address

      Match pattern: ^0x[0-9a-fA-F]{40}$


    • type string required

      type

      Match pattern: ^0x2$


    • v string

      For backwards compatibility, v is optionally provided as an alternative to yParity. This field is DEPRECATED and all use of it should migrate to yParity.

      Match pattern: ^0x[0-9a-f]{1,2}$


    • value string required

      value

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • yParity string required

      The 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 Transaction object

    Signed 2930 Transaction fields​

    transactions array<object> required

    Signed 2930 Transaction


    Show transactions object

    transactions fields​

    • accessList array<object> required

      EIP-2930 access list


      Show accessList object

      accessList fields​

      EIP-2930 access list

      • address string required

        hex encoded address

        Match pattern: ^0x[0-9a-fA-F]{40}$


      • storageKeys array<string> required

        32 byte hex value

        Match pattern: ^0x[0-9a-f]{64}$


      • additionalProperties false


    • chainId string required

      Chain ID that this transaction is valid on.

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • gas string required

      gas limit

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • gasPrice string required

      The gas price willing to be paid by the sender in wei

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • input string required

      input data

      Match pattern: ^0x([0-9a-f]{2})*$


    • nonce string required

      nonce

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • r string required

      r

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • s string required

      s

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • to null or string


      Show Option 1 Contract Creation (null) null

      Contract Creation (null) fields​

      to null

      Contract Creation (null)


      Show Option 2 Address string

      Address fields​

      to string

      Address

      Match pattern: ^0x[0-9a-fA-F]{40}$


    • type string required

      type

      Match pattern: ^0x1$


    • v string

      For backwards compatibility, v is optionally provided as an alternative to yParity. This field is DEPRECATED and all use of it should migrate to yParity.

      Match pattern: ^0x[0-9a-f]{1,2}$


    • value string required

      value

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • yParity string required

      The 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 Transaction object

    Signed Legacy Transaction fields​

    transactions array<object> required

    Signed Legacy Transaction


    Show transactions object

    transactions fields​

    • chainId string

      Chain ID that this transaction is valid on.

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • gas string required

      gas limit

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • gasPrice string required

      The gas price willing to be paid by the sender in wei

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • input string required

      input data

      Match pattern: ^0x([0-9a-f]{2})*$


    • nonce string required

      nonce

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • r string required

      r

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • s string required

      s

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • to null or string


      Show Option 1 Contract Creation (null) null

      Contract Creation (null) fields​

      to null

      Contract Creation (null)


      Show Option 2 Address string

      Address fields​

      to string

      Address

      Match pattern: ^0x[0-9a-fA-F]{40}$


    • type string required

      type

      Match pattern: ^0x0$


    • v string required

      v

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • value string required

      value

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


    • additionalProperties true


  • transactionsRoot string required

    Transactions root

    Match pattern: ^0x[0-9a-f]{64}$


  • uncles array<string> required

    32 byte hex value

    Match pattern: ^0x[0-9a-f]{64}$


  • withdrawals array<object>

    Validator withdrawal


    Show withdrawals object

    withdrawals fields​

    • address string required

      recipient address for withdrawal value

      Match pattern: ^0x[0-9a-fA-F]{40}$


    • amount string required

      value contained in withdrawal, in Gwei

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]{0,15})$


    • index string required

      index of withdrawal

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]{0,15})$


    • validatorIndex string required

      index of validator that generated withdrawal

      Match pattern: ^0x(0|[1-9a-f][0-9a-f]{0,15})$


    • additionalProperties false


  • withdrawalsRoot string

    Withdrawals 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"
}
]