eth_simulateV1
Simulates executing transactions without actually performing them on the blockchain. Useful for testing transaction outcomes.
Parameters
Returns
Request
{
"jsonrpc": "2.0",
"method": "eth_simulateV1",
"params": [
{
"blockStateCalls": [
{
"blockOverrides": {"baseFeePerGas": "0x0"},
"calls": [
{
"from": "0x407d73d8a49eeb85d32cf465507dd71d507100c1",
"to": "0x87265f0e8b7b9b5f7e1a8e4d2c6f9a1b3e8d7c6a",
"value": "0xde0b6b3a7640000"
}
]
}
]
},
"latest"
],
"id": 1
}
Response
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"calls": [
{
"status": "0x1",
"gasUsed": "0x5208",
"returnData": "0x"
}
]
}
]
}
Last updated