> ## Documentation Index
> Fetch the complete documentation index at: https://docs.validationcloud.io/llms.txt
> Use this file to discover all available pages before exploring further.

# eth_simulateV1

Simulates one or more transaction bundles against the state of a given block, without broadcasting anything.

This method supports state overrides, block overrides, multi-block simulation and optional transfer tracing.

This method will use `40` [Compute Units](https://docs.validationcloud.io/nodeapi/about/billing.md).

***

> [!NOTE]
>
> Cronos Mainnet keeps state for the last 362,880 blocks, about 42 hours at Cronos's block time of under half a second. Requests for an older block return JSON-RPC error `-32000` with a message that contains `failed to load state at height`.

### Parameters:

`params` - array containing:

1. `simulationPayload` - object - required

Configuration object for the simulation.

#### **simulationPayload fields:**

* `blockStateCalls` - array - required\
  Array of block simulation objects. Each represents a simulated block.
* `traceTransfers` - boolean - optional\
  If `true`, value transfers are included as logs. Defaults to `false`.
* `validation` - boolean - optional\
  If `true`, applies validation checks such as nonce and balance. Defaults to `false`.

#### **blockStateCalls object fields:**

* `calls` - array\
  List of transaction call objects to simulate
* `stateOverrides` - object - optional\
  Override account state (balance, nonce, code, storage)
* `blockOverrides` - object - optional\
  Override block-level fields (e.g. `number`, `timestamp`, `baseFeePerGas`)

#### **call object fields:**

* `from` - string - optional\
  Sender address
* `to` - string - optional\
  Recipient address. Omit it to simulate a contract creation
* `maxFeePerGas` - string - optional\
  Max fee per gas (hex)
* `value` - string - optional\
  Value sent (hex)
* `data` - string - optional\
  Hex-encoded calldata

2. `blockParameter` - string - required

Block number, hash, or tag such as `"latest"`.

### Returns:

`array of objects` - simulated block results. Each object is a full block header for the simulated block plus a `calls` array.

#### **Call result fields:**

* `status` - string\
  "0x1" = success, "0x0" = failure
* `gasUsed` - string\
  Gas used (hex)
* `returnData` - string\
  Return data (hex)
* `logs` - array\
  Emitted logs (includes transfers if enabled)
* `error` - string\
  Error or revert reason (if failed)

```javascript theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
// Result (block header fields other than number, hash, gasUsed and baseFeePerGas omitted)
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "number": "0x688be7f",
      "hash": "0x94a1ab3f9cd5b85f126c6b2143cc42f7e81a7242d0a8ac4ed378f06eee671291",
      "gasUsed": "0x5e3d",
      "baseFeePerGas": "0x0",
      "calls": [
        {
          "returnData": "0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000004...",
          "logs": [],
          "gasUsed": "0x5e3d",
          "maxUsedGas": "0x5e3d",
          "status": "0x1"
        }
      ]
    }
  ]
}
```

### Example Request

```bash title="mainnet" theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
curl https://mainnet.cronos.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"eth_simulateV1","params":[{"blockStateCalls":[{"calls":[{"to":"0x5c7f8a570d578ed84e63fdfa7b1ee72deae1ae23","data":"0x95d89b41"}]}]},"latest"],"id":1}'
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.