Azxa
← Rootstock overview

Rootstock · eth

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

  • Payload required
    Schema
    {
      "title": "Arguments for eth_simulate"
    }
  • Block tag

    default: 'latest'

    Schema
    {
      "title": "Block number, tag, or block hash",
      "anyOf": [
        {
          "type": "string",
          "title": "Block number",
          "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
        },
        {
          "type": "string",
          "title": "Block tag",
          "description": "`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. Before the merge transition is finalized, any call querying for `finalized` or `safe` block MUST be responded to with `-39001: Unknown block` error",
          "enum": [
            "earliest",
            "finalized",
            "safe",
            "latest",
            "pending"
          ]
        },
        {
          "type": "string",
          "title": "Block hash",
          "pattern": "^0x[0-9a-f]{64}$"
        }
      ]
    }

Result

Result of calls

Schema
{
  "type": "array",
  "title": "Full results of eth_simulate",
  "items": {
    "type": "object",
    "title": "Result of eth_simulate block-level, with array of calls",
    "properties": {
      "baseFeePerGas": {
        "type": "string",
        "title": "Base fee per gas",
        "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
      },
      "blobGasUsed": {
        "type": "string",
        "title": "Blob gas used",
        "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
      },
      "blockAccessListHash": {
        "type": "string",
        "title": "EIP-7928 block access list hash",
        "pattern": "^0x[0-9a-f]{64}$"
      },
      "calls": {
        "type": "array",
        "title": "Call Results",
        "items": {
          "oneOf": [
            {
              "type": "object",
              "title": "Result of call failure",
              "description": "The error messages are suggestions, and clients might implement different error messages. However, the error codes are enforced by the spec.",
              "properties": {
                "error": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "unknown"
                        },
                        "message": {
                          "type": "unknown"
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "unknown"
                        },
                        "message": {
                          "type": "unknown"
                        }
                      }
                    }
                  ]
                },
                "gasUsed": {
                  "type": "string",
                  "title": "Return gasUsed",
                  "pattern": "^0x(0|[1-9a-f][0-9a-f]{0,15})$"
                },
                "maxUsedGas": {
                  "type": "string",
                  "title": "Maximum gas used during execution before refunds",
                  "pattern": "^0x(0|[1-9a-f][0-9a-f]{0,15})$"
                },
                "returnData": {
                  "type": "string",
                  "title": "Return data",
                  "pattern": "^0x[0-9a-f]*$"
                },
                "status": {
                  "type": "string",
                  "title": "Call Status Failure",
                  "pattern": "^0x0$"
                }
              },
              "required": [
                "status",
                "returnData",
                "gasUsed",
                "error"
              ]
            },
            {
              "type": "object",
              "title": "Result of call success",
              "properties": {
                "gasUsed": {
                  "type": "string",
                  "title": "Return gasUsed",
                  "pattern": "^0x(0|[1-9a-f][0-9a-f]{0,15})$"
                },
                "logs": {
                  "type": "array",
                  "title": "Return logs",
                  "items": {
                    "type": "object",
                    "title": "log",
                    "properties": {
                      "address": {
                        "type": "unknown"
                      },
                      "blockHash": {
                        "type": "unknown"
                      },
                      "blockNumber": {
                        "type": "unknown"
                      },
                      "blockTimestamp": {
                        "type": "unknown"
                      },
                      "data": {
                        "type": "unknown"
                      },
                      "logIndex": {
                        "type": "unknown"
                      },
                      "removed": {
                        "type": "unknown"
                      },
                      "topics": {
                        "type": "unknown"
                      },
                      "transactionHash": {
                        "type": "unknown"
                      },
                      "transactionIndex": {
                        "type": "unknown"
                      }
                    },
                    "required": [
                      "transactionHash"
                    ]
                  }
                },
                "maxUsedGas": {
                  "type": "string",
                  "title": "Maximum gas used during execution before refunds",
                  "pattern": "^0x(0|[1-9a-f][0-9a-f]{0,15})$"
                },
                "returnData": {
                  "type": "string",
                  "title": "Return data",
                  "pattern": "^0x[0-9a-f]*$"
                },
                "status": {
                  "type": "string",
                  "title": "Call Status Success",
                  "pattern": "^0x1$"
                }
              },
              "required": [
                "status",
                "returnData",
                "gasUsed",
                "logs"
              ]
            }
          ]
        }
      },
      "difficulty": {
        "type": "string",
        "title": "Difficulty",
        "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
      },
      "excessBlobGas": {
        "type": "string",
        "title": "Excess blob gas",
        "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
      },
      "extraData": {
        "type": "string",
        "title": "Extra data",
        "pattern": "^0x[0-9a-f]*$"
      },
      "gasLimit": {
        "type": "string",
        "title": "Gas limit",
        "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
      },
      "gasUsed": {
        "type": "string",
        "title": "Gas used",
        "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
      },
      "hash": {
        "type": "string",
        "title": "Hash",
        "pattern": "^0x[0-9a-f]{64}$"
      },
      "logsBloom": {
        "type": "string",
        "title": "Bloom filter",
        "pattern": "^0x[0-9a-f]{512}$"
      },
      "miner": {
        "type": "string",
        "title": "Coinbase",
        "pattern": "^0x[0-9a-fA-F]{40}$"
      },
      "mixHash": {
        "type": "string",
        "title": "Mix hash",
        "pattern": "^0x[0-9a-f]{64}$"
      },
      "nonce": {
        "type": "string",
        "title": "Nonce",
        "pattern": "^0x[0-9a-f]{16}$"
      },
      "number": {
        "type": "string",
        "title": "Number",
        "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
      },
      "parentBeaconBlockRoot": {
        "type": "string",
        "title": "Parent Beacon Block Root",
        "pattern": "^0x[0-9a-f]{64}$"
      },
      "parentHash": {
        "type": "string",
        "title": "Parent block hash",
        "pattern": "^0x[0-9a-f]{64}$"
      },
      "receiptsRoot": {
        "type": "string",
        "title": "Receipts root",
        "pattern": "^0x[0-9a-f]{64}$"
      },
      "requestsHash": {
        "type": "string",
        "title": "EIP-7685 requests hash",
        "pattern": "^0x[0-9a-f]{64}$"
      },
      "sha3Uncles": {
        "type": "string",
        "title": "Ommers hash",
        "pattern": "^0x[0-9a-f]{64}$"
      },
      "size": {
        "type": "string",
        "title": "Block size",
        "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
      },
      "stateRoot": {
        "type": "string",
        "title": "State root",
        "pattern": "^0x[0-9a-f]{64}$"
      },
      "timestamp": {
        "type": "string",
        "title": "Timestamp",
        "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
      },
      "transactions": {
        "anyOf": [
          {
            "type": "array",
            "title": "Transaction hashes",
            "items": {
              "type": "string",
              "title": "32 byte hex value",
              "pattern": "^0x[0-9a-f]{64}$"
            }
          },
          {
            "type": "array",
            "title": "Full transactions",
            "items": {
              "type": "object",
              "title": "Transaction information",
              "properties": {
                "blockHash": {
                  "type": "string",
                  "title": "block hash",
                  "pattern": "^0x[0-9a-f]{64}$"
                },
                "blockNumber": {
                  "type": "string",
                  "title": "block number",
                  "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                },
                "blockTimestamp": {
                  "type": "string",
                  "title": "block timestamp",
                  "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                },
                "from": {
                  "type": "string",
                  "title": "from address",
                  "pattern": "^0x[0-9a-fA-F]{40}$"
                },
                "hash": {
                  "type": "string",
                  "title": "transaction hash",
                  "pattern": "^0x[0-9a-f]{64}$"
                },
                "transactionIndex": {
                  "type": "string",
                  "title": "transaction index",
                  "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                }
              },
              "required": [
                "blockHash",
                "blockNumber",
                "blockTimestamp",
                "from",
                "hash",
                "transactionIndex"
              ],
              "oneOf": [
                {
                  "type": "object",
                  "title": "Signed 7702 Transaction",
                  "properties": {
                    "accessList": {
                      "type": "array",
                      "title": "accessList",
                      "description": "EIP-2930 access lists",
                      "items": {
                        "type": "unknown"
                      }
                    },
                    "authorizationList": {
                      "type": "array",
                      "title": "authorizationList",
                      "description": "List of authorizations for the transaction",
                      "items": {
                        "type": "unknown"
                      }
                    },
                    "chainId": {
                      "type": "string",
                      "title": "chainId",
                      "description": "Chain ID that this transaction is valid on",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "gas": {
                      "type": "string",
                      "title": "gas limit",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "gasPrice": {
                      "type": "string",
                      "title": "gas price",
                      "description": "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.",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "input": {
                      "type": "string",
                      "title": "input data",
                      "pattern": "^0x[0-9a-f]*$"
                    },
                    "maxFeePerGas": {
                      "type": "string",
                      "title": "max fee per gas",
                      "description": "The maximum total fee per gas the sender is willing to pay (includes the network / base fee and miner / priority fee) in wei",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "maxPriorityFeePerGas": {
                      "type": "string",
                      "title": "max priority fee per gas",
                      "description": "Maximum fee per gas the sender is willing to pay to miners in wei",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "nonce": {
                      "type": "string",
                      "title": "nonce",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "r": {
                      "type": "string",
                      "title": "r",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "s": {
                      "type": "string",
                      "title": "s",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "to": {
                      "type": "string",
                      "title": "to address",
                      "pattern": "^0x[0-9a-fA-F]{40}$"
                    },
                    "type": {
                      "type": "string",
                      "title": "type",
                      "pattern": "^0x4$"
                    },
                    "v": {
                      "type": "string",
                      "title": "v",
                      "description": "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`.",
                      "pattern": "^0x[0-9a-f]{1,2}$"
                    },
                    "value": {
                      "type": "string",
                      "title": "value",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "yParity": {
                      "type": "string",
                      "title": "yParity",
                      "description": "The parity (0 for even, 1 for odd) of the y-value of the secp256k1 signature.",
                      "pattern": "^0x[0-9a-f]{1,2}$"
                    }
                  },
                  "required": [
                    "accessList",
                    "authorizationList",
                    "chainId",
                    "gas",
                    "input",
                    "maxFeePerGas",
                    "maxPriorityFeePerGas",
                    "nonce",
                    "r",
                    "s",
                    "to",
                    "type",
                    "value",
                    "yParity"
                  ]
                },
                {
                  "type": "object",
                  "title": "Signed 4844 Transaction",
                  "properties": {
                    "accessList": {
                      "type": "array",
                      "title": "accessList",
                      "description": "EIP-2930 access list",
                      "items": {
                        "type": "unknown"
                      }
                    },
                    "blobVersionedHashes": {
                      "type": "array",
                      "title": "blobVersionedHashes",
                      "description": "List of versioned blob hashes associated with the transaction's EIP-4844 data blobs",
                      "items": {
                        "type": "unknown"
                      }
                    },
                    "chainId": {
                      "type": "string",
                      "title": "chainId",
                      "description": "Chain ID that this transaction is valid on",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "gas": {
                      "type": "string",
                      "title": "gas limit",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "gasPrice": {
                      "type": "string",
                      "title": "gas price",
                      "description": "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.",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "input": {
                      "type": "string",
                      "title": "input data",
                      "pattern": "^0x[0-9a-f]*$"
                    },
                    "maxFeePerBlobGas": {
                      "type": "string",
                      "title": "max fee per blob gas",
                      "description": "The maximum total fee per gas the sender is willing to pay for blob gas in wei",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "maxFeePerGas": {
                      "type": "string",
                      "title": "max fee per gas",
                      "description": "The maximum total fee per gas the sender is willing to pay (includes the network / base fee and miner / priority fee) in wei",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "maxPriorityFeePerGas": {
                      "type": "string",
                      "title": "max priority fee per gas",
                      "description": "Maximum fee per gas the sender is willing to pay to miners in wei",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "nonce": {
                      "type": "string",
                      "title": "nonce",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "r": {
                      "type": "string",
                      "title": "r",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "s": {
                      "type": "string",
                      "title": "s",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "to": {
                      "type": "string",
                      "title": "to address",
                      "pattern": "^0x[0-9a-fA-F]{40}$"
                    },
                    "type": {
                      "type": "string",
                      "title": "type",
                      "pattern": "^0x3$"
                    },
                    "v": {
                      "type": "string",
                      "title": "v",
                      "description": "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`.",
                      "pattern": "^0x[0-9a-f]{1,2}$"
                    },
                    "value": {
                      "type": "string",
                      "title": "value",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "yParity": {
                      "type": "string",
                      "title": "yParity",
                      "description": "The parity (0 for even, 1 for odd) of the y-value of the secp256k1 signature.",
                      "pattern": "^0x[0-9a-f]{1,2}$"
                    }
                  },
                  "required": [
                    "accessList",
                    "blobVersionedHashes",
                    "chainId",
                    "gas",
                    "input",
                    "maxFeePerBlobGas",
                    "maxFeePerGas",
                    "maxPriorityFeePerGas",
                    "nonce",
                    "r",
                    "s",
                    "to",
                    "type",
                    "value",
                    "yParity"
                  ]
                },
                {
                  "type": "object",
                  "title": "Signed 1559 Transaction",
                  "properties": {
                    "accessList": {
                      "type": "array",
                      "title": "accessList",
                      "description": "EIP-2930 access list",
                      "items": {
                        "type": "unknown"
                      }
                    },
                    "chainId": {
                      "type": "string",
                      "title": "chainId",
                      "description": "Chain ID that this transaction is valid on.",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "gas": {
                      "type": "string",
                      "title": "gas limit",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "gasPrice": {
                      "type": "string",
                      "title": "gas price",
                      "description": "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.",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "input": {
                      "type": "string",
                      "title": "input data",
                      "pattern": "^0x[0-9a-f]*$"
                    },
                    "maxFeePerGas": {
                      "type": "string",
                      "title": "max fee per gas",
                      "description": "The maximum total fee per gas the sender is willing to pay (includes the network / base fee and miner / priority fee) in wei",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "maxPriorityFeePerGas": {
                      "type": "string",
                      "title": "max priority fee per gas",
                      "description": "Maximum fee per gas the sender is willing to pay to miners in wei",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "nonce": {
                      "type": "string",
                      "title": "nonce",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "r": {
                      "type": "string",
                      "title": "r",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "s": {
                      "type": "string",
                      "title": "s",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "to": {
                      "title": "to address",
                      "oneOf": [
                        {
                          "type": "unknown"
                        },
                        {
                          "type": "unknown"
                        }
                      ]
                    },
                    "type": {
                      "type": "string",
                      "title": "type",
                      "pattern": "^0x2$"
                    },
                    "v": {
                      "type": "string",
                      "title": "v",
                      "description": "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`.",
                      "pattern": "^0x[0-9a-f]{1,2}$"
                    },
                    "value": {
                      "type": "string",
                      "title": "value",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "yParity": {
                      "type": "string",
                      "title": "yParity",
                      "description": "The parity (0 for even, 1 for odd) of the y-value of the secp256k1 signature.",
                      "pattern": "^0x[0-9a-f]{1,2}$"
                    }
                  },
                  "required": [
                    "accessList",
                    "chainId",
                    "gas",
                    "gasPrice",
                    "input",
                    "maxFeePerGas",
                    "maxPriorityFeePerGas",
                    "nonce",
                    "r",
                    "s",
                    "type",
                    "value",
                    "yParity"
                  ]
                },
                {
                  "type": "object",
                  "title": "Signed 2930 Transaction",
                  "properties": {
                    "accessList": {
                      "type": "array",
                      "title": "accessList",
                      "description": "EIP-2930 access list",
                      "items": {
                        "type": "unknown"
                      }
                    },
                    "chainId": {
                      "type": "string",
                      "title": "chainId",
                      "description": "Chain ID that this transaction is valid on.",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "gas": {
                      "type": "string",
                      "title": "gas limit",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "gasPrice": {
                      "type": "string",
                      "title": "gas price",
                      "description": "The gas price willing to be paid by the sender in wei",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "input": {
                      "type": "string",
                      "title": "input data",
                      "pattern": "^0x[0-9a-f]*$"
                    },
                    "nonce": {
                      "type": "string",
                      "title": "nonce",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "r": {
                      "type": "string",
                      "title": "r",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "s": {
                      "type": "string",
                      "title": "s",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "to": {
                      "title": "to address",
                      "oneOf": [
                        {
                          "type": "unknown"
                        },
                        {
                          "type": "unknown"
                        }
                      ]
                    },
                    "type": {
                      "type": "string",
                      "title": "type",
                      "pattern": "^0x1$"
                    },
                    "v": {
                      "type": "string",
                      "title": "v",
                      "description": "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`.",
                      "pattern": "^0x[0-9a-f]{1,2}$"
                    },
                    "value": {
                      "type": "string",
                      "title": "value",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "yParity": {
                      "type": "string",
                      "title": "yParity",
                      "description": "The parity (0 for even, 1 for odd) of the y-value of the secp256k1 signature.",
                      "pattern": "^0x[0-9a-f]{1,2}$"
                    }
                  },
                  "required": [
                    "accessList",
                    "chainId",
                    "gas",
                    "gasPrice",
                    "input",
                    "nonce",
                    "r",
                    "s",
                    "type",
                    "value",
                    "yParity"
                  ]
                },
                {
                  "type": "object",
                  "title": "Signed Legacy Transaction",
                  "properties": {
                    "chainId": {
                      "type": "string",
                      "title": "chainId",
                      "description": "Chain ID that this transaction is valid on.",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "gas": {
                      "type": "string",
                      "title": "gas limit",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "gasPrice": {
                      "type": "string",
                      "title": "gas price",
                      "description": "The gas price willing to be paid by the sender in wei",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "input": {
                      "type": "string",
                      "title": "input data",
                      "pattern": "^0x[0-9a-f]*$"
                    },
                    "nonce": {
                      "type": "string",
                      "title": "nonce",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "r": {
                      "type": "string",
                      "title": "r",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "s": {
                      "type": "string",
                      "title": "s",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "to": {
                      "title": "to address",
                      "oneOf": [
                        {
                          "type": "unknown"
                        },
                        {
                          "type": "unknown"
                        }
                      ]
                    },
                    "type": {
                      "type": "string",
                      "title": "type",
                      "pattern": "^0x0$"
                    },
                    "v": {
                      "type": "string",
                      "title": "v",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "value": {
                      "type": "string",
                      "title": "value",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    }
                  },
                  "required": [
                    "gas",
                    "gasPrice",
                    "input",
                    "nonce",
                    "r",
                    "s",
                    "type",
                    "v",
                    "value"
                  ]
                }
              ]
            }
          }
        ]
      },
      "transactionsRoot": {
        "type": "string",
        "title": "Transactions root",
        "pattern": "^0x[0-9a-f]{64}$"
      },
      "uncles": {
        "type": "array",
        "title": "Uncles",
        "items": {
          "type": "string",
          "title": "32 byte hex value",
          "pattern": "^0x[0-9a-f]{64}$"
        }
      },
      "withdrawals": {
        "type": "array",
        "title": "Withdrawals",
        "items": {
          "type": "object",
          "title": "Validator withdrawal",
          "properties": {
            "address": {
              "type": "string",
              "title": "recipient address for withdrawal value",
              "pattern": "^0x[0-9a-fA-F]{40}$"
            },
            "amount": {
              "type": "string",
              "title": "value contained in withdrawal",
              "pattern": "^0x(0|[1-9a-f][0-9a-f]{0,63})$"
            },
            "index": {
              "type": "string",
              "title": "index of withdrawal",
              "pattern": "^0x(0|[1-9a-f][0-9a-f]{0,15})$"
            },
            "validatorIndex": {
              "type": "string",
              "title": "index of validator that generated withdrawal",
              "pattern": "^0x(0|[1-9a-f][0-9a-f]{0,15})$"
            }
          },
          "required": [
            "index",
            "validatorIndex",
            "address",
            "amount"
          ]
        }
      },
      "withdrawalsRoot": {
        "type": "string",
        "title": "Withdrawals root",
        "pattern": "^0x[0-9a-f]{64}$"
      }
    },
    "required": [
      "calls",
      "extraData",
      "gasLimit",
      "gasUsed",
      "hash",
      "logsBloom",
      "miner",
      "mixHash",
      "nonce",
      "number",
      "parentHash",
      "receiptsRoot",
      "sha3Uncles",
      "size",
      "stateRoot",
      "timestamp",
      "transactions",
      "transactionsRoot",
      "uncles"
    ]
  }
}

Example request

Endpoint: https://your-rsk-node.azxa.io

JSON-RPC
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_simulateV1",
  "params": []
}

Test fixture

Fixture: ethSimulate-add-more-non-defined-BlockStateCalls-than-fit-but-now-with-fit

Request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_simulateV1",
  "params": [
    {
      "blockStateCalls": [
        {
          "blockOverrides": "…",
          "stateOverrides": "…",
          "calls": "…"
        },
        {
          "calls": "…"
        },
        {
          "blockOverrides": "…",
          "calls": "…"
        },
        {
          "calls": "…"
        }
      ]
    },
    "latest"
  ]
}
Response
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "baseFeePerGas": "0x0",
      "blobGasUsed": "0x0",
      "calls": [],
      "difficulty": "0x0",
      "excessBlobGas": "0x0",
      "extraData": "0x",
      "gasLimit": "0xbebc200",
      "gasUsed": "0x0",
      "hash": "0x3fbf6ce5817de3f70675b5dd105def1c5c2081bb4d46273eef744e7bbb78ea97",
      "logsBloom": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000…00000000000000000000",
      "miner": "0x0000000000000000000000000000000000000000",
      "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
      "…": "15 more fields"
    },
    {
      "baseFeePerGas": "0x0",
      "blobGasUsed": "0x0",
      "calls": [],
      "difficulty": "0x0",
      "excessBlobGas": "0x0",
      "extraData": "0x",
      "gasLimit": "0xbebc200",
      "gasUsed": "0x0",
      "hash": "0x60c8171e830b7f8a4768ded75bd70914d057a7b3fc3b45c2c3c97394b64f2639",
      "logsBloom": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000…00000000000000000000",
      "miner": "0x0000000000000000000000000000000000000000",
      "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
      "…": "15 more fields"
    },
    {
      "baseFeePerGas": "0x0",
      "blobGasUsed": "0x0",
      "calls": [],
      "difficulty": "0x0",
      "excessBlobGas": "0x0",
      "extraData": "0x",
      "gasLimit": "0xbebc200",
      "gasUsed": "0x0",
      "hash": "0x9dcef4f49182e84936a4d31096c6c60c602b86c06dfe4ce9e28e980d57ba7fd2",
      "logsBloom": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000…00000000000000000000",
      "miner": "0x0000000000000000000000000000000000000000",
      "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
      "…": "15 more fields"
    },
    {
      "baseFeePerGas": "0x0",
      "blobGasUsed": "0x0",
      "calls": [],
      "difficulty": "0x0",
      "excessBlobGas": "0x0",
      "extraData": "0x",
      "gasLimit": "0xbebc200",
      "gasUsed": "0x0",
      "hash": "0x0388eeaa5556be9f1be917fe2105dc3d42b3de1904ef3cbec2204f82fdfe3973",
      "logsBloom": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000…00000000000000000000",
      "miner": "0x0000000000000000000000000000000000000000",
      "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
      "…": "15 more fields"
    },
    "…",
    {
      "baseFeePerGas": "0x0",
      "blobGasUsed": "0x0",
      "calls": [
        {
          "returnData": "…",
          "logs": "…",
          "gasUsed": "…",
          "maxUsedGas": "…",
          "status": "…"
        }
      ],
      "difficulty": "0x0",
      "excessBlobGas": "0x0",
      "extraData": "0x",
      "gasLimit": "0xbebc200",
      "gasUsed": "0x57bc",
      "hash": "0x0d13663e0d314f1a253377b26840dd4e3475e753ad07fa93a5ca8416ae2ae307",
      "logsBloom": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000…00000000000000000000",
      "miner": "0x0000000000000000000000000000000000000000",
      "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
      "…": "15 more fields"
    }
  ]
}

cURL

curl -X POST https://your-rsk-node.azxa.io \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_simulateV1","params":[]}'
1

Select Chain

2

Desired Period

3

Contact Information

cross

Select Preferred Chain

BNB Smart Chain
Polygon
Tron
Arbitrum
Optimism
IoTeX
Gnosis
Fantom
Moonbeam
Polkadot
Avalanche
Bitcoin
Ethereum
Aptos
Other
cube

Other Chain

Continue
logo
cross
background