Appearance
eth_callMany
served · same as reth
Runs bundles of calls one after another on the state of one block. Each call sees the effects of the calls before it.
When to use
Use it to test a sequence of calls, for example to check a trade after another transaction, without sending anything.
Example
bash
curl -s -X POST -H 'Content-Type: application/json' \
--data '{"jsonrpc": "2.0", "id": 1, "method": "eth_callMany", "params": [[{"transactions": [{"to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "data": "0x18160ddd"}]}], {"blockNumber": "0x18facad"}]}' \
http://127.0.0.1:8547json
{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_callMany",
"params": [
[
{
"transactions": [
{
"to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"data": "0x18160ddd"
}
]
}
],
{
"blockNumber": "0x18facad"
}
]
}Response
Live mainnet, block 26193069, 2026-10-14. Checked against reth 2.7: equal.
json
{
"jsonrpc": "2.0",
"id": 1,
"result": [
[
{
"value": "0x00000000000000000000000000000000000000000000000000ab38d270bbc858"
}
]
]
}Parameters
| Name | Type | Required | Meaning |
|---|---|---|---|
bundles | list of bundles | yes | Each bundle is an object with transactions (a list of call objects) and an optional blockOverride. |
stateContext | object | no | blockNumber: the block (default latest). transactionIndex: run on the parent state after this many transactions of that block. -1 or no value: on the state after the whole block. |
stateOverrides | object, see State override | no | Changes to the state before the first call. |
Returns
A list with one list per bundle. Each item is {"value": "0x..."} with the return data, or {"error": "..."} when the call reverted or failed.
Notes and limits
- A revert does not stop the next calls. The node writes the reason in
error. - An empty bundle gives no item in the result.
Errors
| Code | Message | When |
|---|---|---|
| -32602 | bundles are empty. | The list of bundles is empty. |
| -32602 | Invalid params | A parameter is missing or does not parse. data has the text of reth, with the position. |
| -32003 | call_many error in bundle B and transaction T: insufficient funds ... | A value is above the balance. The call has a gas price and no gas. The message names the bundle and the call. |
| -32000 | call_many error in bundle B and transaction T: <fee error> | A fee is not valid. The fee errors of eth_call get this prefix, with the same code. |
Compared with reth
The bundles, the state context and the error texts are those of reth.
The live example above gives the same answer on Cinder and on reth 2.7.
Related methods
eth_call, eth_simulateV1, debug_traceCallMany.
Schema (OpenRPC)
Parameter bundles: CallBundle[]
json
{
"type": "array",
"items": {
"title": "Call bundle",
"type": "object",
"required": [
"transactions"
],
"properties": {
"transactions": {
"type": "array",
"items": {
"title": "Call object",
"description": "The transaction fields that Cinder reads for a call. Other fields are ignored. Either data or input holds the call data.",
"type": "object",
"properties": {
"from": {
"title": "hex encoded address",
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"to": {
"oneOf": [
{
"title": "hex encoded address",
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
{
"type": "null"
}
]
},
"gas": {
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
},
"gasPrice": {
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
},
"maxFeePerGas": {
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
},
"maxPriorityFeePerGas": {
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
},
"maxFeePerBlobGas": {
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
},
"value": {
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
},
"nonce": {
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
},
"data": {
"title": "hex encoded bytes",
"type": "string",
"pattern": "^0x[0-9a-f]*$"
},
"input": {
"title": "hex encoded bytes",
"type": "string",
"pattern": "^0x[0-9a-f]*$"
},
"accessList": {
"title": "Access list",
"type": "array",
"items": {
"type": "object",
"required": [
"address",
"storageKeys"
],
"properties": {
"address": {
"title": "hex encoded address",
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"storageKeys": {
"type": "array",
"items": {
"title": "32 byte hex value",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
}
}
}
}
},
"authorizationList": {
"type": "array",
"items": {
"type": "object",
"properties": {
"chainId": {
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
},
"address": {
"title": "hex encoded address",
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"nonce": {
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
},
"yParity": {
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
},
"v": {
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
},
"r": {
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
},
"s": {
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
}
}
}
},
"blobVersionedHashes": {
"type": "array",
"items": {
"title": "32 byte hex value",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
}
}
}
}
},
"blockOverride": {
"title": "Block overrides",
"description": "Fields of the block environment to replace for the call.",
"oneOf": [
{
"type": "object",
"properties": {
"number": {
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
},
"time": {
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
},
"timestamp": {
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
},
"gasLimit": {
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
},
"coinbase": {
"title": "hex encoded address",
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"feeRecipient": {
"title": "hex encoded address",
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"prevRandao": {
"title": "32 byte hex value",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
},
"random": {
"title": "32 byte hex value",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
},
"baseFee": {
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
},
"baseFeePerGas": {
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
},
"blockHash": {
"type": "object",
"additionalProperties": {
"title": "32 byte hex value",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
}
}
}
},
{
"type": "null"
}
]
}
}
}
}Parameter stateContext: StateContext
json
{
"title": "State context",
"description": "The block whose state the bundles run on. transactionIndex is the number of its transactions to run first. -1, or no value, runs all of them.",
"type": "object",
"properties": {
"blockNumber": {
"title": "Block number, tag or block identifier",
"description": "A block number, a tag, or an object with blockHash or blockNumber. Null means latest.",
"oneOf": [
{
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
},
{
"title": "Block tag",
"type": "string",
"enum": [
"earliest",
"finalized",
"safe",
"latest",
"pending"
],
"description": "latest is the head of the last forkchoice update, as reth. pending is the block that Cinder builds from its transaction pool after latest, as reth. safe and finalized are the blocks of the last forkchoice update, as reth. Before the first update, they name no block. earliest is the first block that the node stored, as reth."
},
{
"type": "object",
"properties": {
"blockHash": {
"title": "32 byte hex value",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
},
"blockNumber": {
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"transactionIndex": {
"type": "integer",
"minimum": -1
}
}
}Parameter stateOverrides: StateOverrides
json
{
"title": "State overrides",
"description": "An object that maps an address to the account fields to replace before the call. Use state to replace the whole storage, and stateDiff to change single slots.",
"oneOf": [
{
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"balance": {
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
},
"nonce": {
"title": "hex encoded unsigned integer",
"type": "string",
"pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
},
"code": {
"title": "hex encoded bytes",
"type": "string",
"pattern": "^0x[0-9a-f]*$"
},
"state": {
"type": "object",
"additionalProperties": {
"title": "32 byte hex value",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
}
},
"stateDiff": {
"type": "object",
"additionalProperties": {
"title": "32 byte hex value",
"type": "string",
"pattern": "^0x[0-9a-f]{64}$"
}
},
"movePrecompileToAddress": {
"title": "hex encoded address",
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
}
}
}
},
{
"type": "null"
}
]
}Result: CallManyResult[][]
json
{
"type": "array",
"items": {
"type": "array",
"items": {
"title": "Result of one call",
"type": "object",
"properties": {
"value": {
"title": "hex encoded bytes",
"type": "string",
"pattern": "^0x[0-9a-f]*$"
},
"error": {
"type": "string"
}
},
"description": "value holds the return data of a call that succeeded. error holds the reason of a call that reverted or halted."
}
}
}