eth_callMany

Executes multiple message calls in a single request without creating transactions on the blockchain. Similar to eth_call but allows batching multiple calls.

Parameters

array                (array)

    transaction      (object)
        from         (string)
        to           (string) Required
        gas          (integer)
        gasPrice     (integer)
        value        (integer)
        data         (string)
        
    blockOverride    (object)
        blockNumber  (string)
        blockHash    (object)
        coinbase     (address)
        timestamp    (integer)
        difficulty   (integer)
        gasLimit     (integer)
        baseFee      (integer)
        
simulation_context   (object)
    blockNumber/Tag  (string)
    transactionIndex (integer)
    
state_override       (object)
    address          (string)
        balance      (string)
        nonce        (string)
        code         (string)
        state        (object)
        stateDiff    (integer)

timeout              (integer)

Returns

array                (array)
    value            (string)
    error            (string)

Request

{
  "jsonrpc": "2.0",
  "method": "eth_callMany",
  "params": [
    [
      {
        "to": "0x69650Ae86a6f67a5dcb5A96fAD8e512A492ac4Ec",
        "data": "0x499d98ad"
      },
      {
        "to": "0x69650Ae86a6f67a5dcb5A96fAD8e512A492ac4Ec",
        "data": "0x499d98ad"
      }
    ],
    "latest"
  ],
  "id": 1
}

Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    "0x0000000000000000000000000000000000000000000000000000000000000003",
    "0x0000000000000000000000000000000000000000000000000000000000000003"
  ]
}

Last updated