For the complete documentation index, see llms.txt. This page is also available as Markdown.

eth_simulateV1

POST https://mainnet.valuechain.xyz

Simulates one or more sequences of calls against optional state overrides.

Parameters

Name
Type
Required
Description

payload

object

Yes

blockStateCalls plus optional traceTransfers and validation.

block

quantity or tag

Yes

Starting block: hex number, or earliest, latest, safe, finalized, or pending. See block tags.

Result

Simulation (object[]): Simulated block results, including per-call returnData, gasUsed, and status.

Example

Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "calls": [
        {
          "returnData": "0x",
          "gasUsed": "0x54be",
          "status": "0x1",
          "logs": []
        }
      ]
    }
  ]
}

Code examples

cURL

JavaScript

Python

Last updated