Parameters
- objectobjectREQUIRED
The simulation request object
- blockStateCallsarrayREQUIRED
Array of block state call objects
- blockOverridesobject
(Optional) An object to override block-level parameters
- baseFeePerGasstring
The base fee per gas for the block, encoded as hexadecimal
- stateOverridesobjectREQUIRED
(Optional) An object to override account states. Each key is an address, and the value is an object with balance, nonce, code, etc.
- addressobject
The address of the account to override
- balancestring
(Optional) The balance to set for the account, encoded as hexadecimal
- noncestring
(Optional) The nonce to set for the account, encoded as hexadecimal
- codestring
(Optional) The bytecode to set for the account
- stateobject
(Optional) The storage slots to override
- stateDiffobject
(Optional) A key-value mapping to override individual slots in the account storage
- callsarrayREQUIRED
Array of transaction call objects to simulate
- fromstring
The address from which the transaction is sent
- tostringREQUIRED
The address to which the transaction is directed
- gasstring
(Optional) The gas limit for the transaction, encoded as hexadecimal
- maxFeePerGasstring
(Optional) The maximum fee per gas the sender is willing to pay, encoded as hexadecimal
- maxPriorityFeePerGasstring
(Optional) The maximum priority fee per gas, encoded as hexadecimal
- gasPricestring
(Optional) The gas price for legacy transactions, encoded as hexadecimal
- valuestring
(Optional) The value sent with the transaction, encoded as hexadecimal
- datastring
(Optional) The data/input for the transaction
- inputstring
(Optional) Alternative to data field
- validationboolean
(Optional) A boolean indicating whether to perform validation checks
- traceTransfersboolean
(Optional) A boolean indicating whether to trace value transfers
- blockParameterstringREQUIRED
The block number, hash, or tag (earliest, finalized, latest, pending, safe)
Returns
- resultarray
Array of simulation results
- baseFeePerGasstring
Base fee per gas in hexadecimal
- blobGasUsedstring
Amount of blob gas used in hexadecimal
- callsarray
Array of call results
- returnDatastring
Return data from the call in hexadecimal
- logsarray
Array of logs generated during the call
- addressstring
Address of the contract that generated the log
- topicsarray
Array of indexed log parameters
- datastring
Contains non-indexed log parameters
- blockNumberstring
Block number in hexadecimal
- transactionHashstring
Hash of the transaction
- transactionIndexstring
Index of the transaction in the block
- blockHashstring | null
Hash of the block
- logIndexstring
Index of the log in the block
- removedboolean
Whether the log was removed due to chain reorganization
- gasUsedstring
Amount of gas used in hexadecimal
- statusstring
Status code of the call in hexadecimal
- errorobject
(Optional) An object array containing error information
- messagestring
An error message
- codeinteger
An error status code
- datastring
A data field containing error related information
- difficultystring
Block difficulty in hexadecimal
- excessBlobGasstring
Excess blob gas in hexadecimal
- extraDatastring
Extra data field in hexadecimal
- gasLimitstring
Gas limit in hexadecimal
- gasUsedstring
Gas used in hexadecimal
- hashstring
Block hash
- logsBloomstring
Logs bloom filter in hexadecimal
- minerstring
Miner/validator address
- mixHashstring
Mix hash in hexadecimal
- noncestring
Nonce in hexadecimal
- numberstring
Block number in hexadecimal
- parentBeaconBlockRootstring
Parent beacon block root in hexadecimal
- parentHashstring
Parent block hash
- receiptsRootstring
Receipts trie root in hexadecimal
- sha3Unclesstring
Uncle blocks hash in hexadecimal
- sizestring
Block size in hexadecimal
- stateRootstring
State trie root in hexadecimal
- timestampstring
Block timestamp in hexadecimal
- totalDifficultystring
Total difficulty in hexadecimal
- transactionsarray
Array of transaction hashes
- transactionsRootstring
Transactions trie root in hexadecimal
- unclesarray
Array of uncle block hashes
- withdrawalsarray
Array of withdrawal objects
- withdrawalsRootstring
Withdrawals trie root in hexadecimal
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"hash": "0x5dc06db47cf5529ae88f14aa03ad72238269ecb9edfe20bd02d470b44a65db42",7"parentHash": "0x9ceebdfdaec3417377bd59f4f5afda667518be85e5ca8d760c8e8e56e533ba72",8"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",9"miner": "0x4200000000000000000000000000000000000011",10"stateRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",11"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",12"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",13"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",14"difficulty": "0x0",15"number": "0x27221cc",16"gasLimit": "0x165a0bc0",17"gasUsed": "0x0",18"timestamp": "0x696ea085",19"extraData": "0x010000003200000006000000000007a120",20"mixHash": "0x80100e7132ba0e4610b349c11b664dc80a160d2a57c8b2caf44e0c2d159a2345",21"nonce": "0x0000000000000000",22"baseFeePerGas": "0x212b9b",23"withdrawalsRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",24"blobGasUsed": "0x0",25"excessBlobGas": "0x0",26"parentBeaconBlockRoot": "0xdd864b52bceea6db42aeef5e925a186859ee6034e8e720cd1a7bb5bc924b1957",27"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",28"size": "0x27c",29"uncles": [],30"transactions": [],31"withdrawals": [],32"calls": []33}34]35}
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"hash": "0x5dc06db47cf5529ae88f14aa03ad72238269ecb9edfe20bd02d470b44a65db42",7"parentHash": "0x9ceebdfdaec3417377bd59f4f5afda667518be85e5ca8d760c8e8e56e533ba72",8"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",9"miner": "0x4200000000000000000000000000000000000011",10"stateRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",11"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",12"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",13"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",14"difficulty": "0x0",15"number": "0x27221cc",16"gasLimit": "0x165a0bc0",17"gasUsed": "0x0",18"timestamp": "0x696ea085",19"extraData": "0x010000003200000006000000000007a120",20"mixHash": "0x80100e7132ba0e4610b349c11b664dc80a160d2a57c8b2caf44e0c2d159a2345",21"nonce": "0x0000000000000000",22"baseFeePerGas": "0x212b9b",23"withdrawalsRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",24"blobGasUsed": "0x0",25"excessBlobGas": "0x0",26"parentBeaconBlockRoot": "0xdd864b52bceea6db42aeef5e925a186859ee6034e8e720cd1a7bb5bc924b1957",27"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",28"size": "0x27c",29"uncles": [],30"transactions": [],31"withdrawals": [],32"calls": []33}34]35}