eth_simulateV1 - Ethereum
Example code for the eth_simulateV1 JSON RPC method. Сomplete guide on how to use eth_simulateV1 JSON RPC in GetBlock Web3 documentation.
Parameters
Parameter
Type
Required
Description
Payload Object
Field
Type
Required
Description
Block State Call Object
Field
Type
Required
Description
Request
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"method": "eth_simulateV1",
"params": [
{
"blockStateCalls": [
{
"calls": [
{
"from": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"to": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"data": "0x70a08231000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa96045"
}
]
}
],
"validation": false,
"traceTransfers": true
},
"latest"
],
"id": "getblock.io"
}'Response
Response Parameters
Parameter
Type
Description
Use Cases
Error Handling
Error Code
Message
Description
Web3 Integration
Was this helpful?