eth_callMany RPC Method
Parameters
array
array
Loading...
transaction
object
Loading...
from
string
Loading...
to
string
REQUIRED
Loading...
gas
integer
Loading...
maxFeePerGas
string
Loading...
maxPriorityFeePerGas
string
Loading...
value
integer
Loading...
data
string
Loading...
blockOverride
object
Loading...
blockNumber
string
Loading...
blockHash
object
Loading...
coinbase
address
Loading...
timestamp
integer
Loading...
difficulty
integer
Loading...
gasLimit
integer
Loading...
baseFee
integer
Loading...
SIMULATION_CONTEXT
object
Loading...
blockNumber or Tag
string
Loading...
transactionIndex
integer
Loading...
STATE_OVERRIDE
object
Loading...
balance
string
Loading...
nonce
string
Loading...
code
string
Loading...
state
object
Loading...
stateDiff
integer
Loading...
timeout
integer
Loading...
Returns
array
array
Loading...
value
string
Loading...
error
string
Loading...
Request
curl --location 'https://docs-demo.xdai.quiknode.pro/' \ --header 'Content-Type: application/json' \ --data '{ "jsonrpc": "2.0", "method": "eth_callMany", "id": 1, "params": [ [ { "transactions": [ { "to": "0x6b175474e89094c44da98b954eedeac495271d0f", "gas": "0xf4240", "maxFeePerGas": "0xa", "maxPriorityFeePerGas": "0x0", "value": "0x0", "data": "0xa9059cbb000000000000000000000000bc0E63965946815d105E7591407704e6e1964E590000000000000000000000000000000000000000000000000000000005f5e100" }, { "to": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913", "maxFeePerGas": "0xa", "maxPriorityFeePerGas": "0x0", "value": "0x0", "data": "0x70a08231000000000000000000000000bc0E63965946815d105E7591407704e6e1964E59" } ], "blockOverride": { "blockNumber": "0x16abda1" } } ], { "blockNumber": "0x16abda1", "transactionIndex": 0 } ] }'
require 'eth' client = Eth::Client.create 'https://docs-demo.xdai.quiknode.pro/' payload = { "jsonrpc": "2.0", "method": "eth_callMany", "id": 1, "params": [ [ { "transactions": [ { "to": "0x6b175474e89094c44da98b954eedeac495271d0f", "gas": "0xf4240", "maxFeePerGas": "0xa", "maxPriorityFeePerGas": "0x0", "value": "0x0", "data": "0xa9059cbb000000000000000000000000bc0E63965946815d105E7591407704e6e1964E590000000000000000000000000000000000000000000000000000000005f5e100" }, { "to": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913", "maxFeePerGas": "0xa", "maxPriorityFeePerGas": "0x0", "value": "0x0", "data": "0x70a08231000000000000000000000000bc0E63965946815d105E7591407704e6e1964E59" } ], "blockOverride": { "blockNumber": "0x16abda1" } } ], { "blockNumber": "0x16abda1", "transactionIndex": 0 } ] } response = client.send(payload.to_json) puts response
import { ethers } from "ethers"; (async () => { const provider = new ethers.JsonRpcProvider("https://docs-demo.xdai.quiknode.pro/"); const params = [ [ { "transactions": [ { "to": "0x6b175474e89094c44da98b954eedeac495271d0f", "gas": "0xf4240", "maxFeePerGas": "0xa", "maxPriorityFeePerGas": "0x0", "value": "0x0", "data": "0xa9059cbb000000000000000000000000bc0E63965946815d105E7591407704e6e1964E590000000000000000000000000000000000000000000000000000000005f5e100" }, { "to": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913", "maxFeePerGas": "0xa", "maxPriorityFeePerGas": "0x0", "value": "0x0", "data": "0x70a08231000000000000000000000000bc0E63965946815d105E7591407704e6e1964E59" } ], "blockOverride": { "blockNumber": "0x16abda1" } } ], { "blockNumber": "0x16abda1", "transactionIndex": 0 } ]; const result = await provider.send("eth_callMany", params); console.log(result); })();
const myHeaders = new Headers(); myHeaders.append("Content-Type", "application/json"); const raw = JSON.stringify({ "jsonrpc": "2.0", "method": "eth_callMany", "id": 1, "params": [ [ { "transactions": [ { "to": "0x6b175474e89094c44da98b954eedeac495271d0f", "gas": "0xf4240", "maxFeePerGas": "0xa", "maxPriorityFeePerGas": "0x0", "value": "0x0", "data": "0xa9059cbb000000000000000000000000bc0E63965946815d105E7591407704e6e1964E590000000000000000000000000000000000000000000000000000000005f5e100" }, { "to": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913", "maxFeePerGas": "0xa", "maxPriorityFeePerGas": "0x0", "value": "0x0", "data": "0x70a08231000000000000000000000000bc0E63965946815d105E7591407704e6e1964E59" } ], "blockOverride": { "blockNumber": "0x16abda1" } } ], { "blockNumber": "0x16abda1", "transactionIndex": 0 } ] }); const requestOptions = { method: "POST", headers: myHeaders, body: raw, redirect: "follow" }; fetch("https://docs-demo.quiknode.pro/", requestOptions) .then((response) => response.text()) .then((result) => console.log(result)) .catch((error) => console.error(error));
import requests import json url = "https://docs-demo.xdai.quiknode.pro/" payload = json.dumps({ "jsonrpc": "2.0", "method": "eth_callMany", "id": 1, "params": [ [ { "transactions": [ { "to": "0x6b175474e89094c44da98b954eedeac495271d0f", "gas": "0xf4240", "maxFeePerGas": "0xa", "maxPriorityFeePerGas": "0x0", "value": "0x0", "data": "0xa9059cbb000000000000000000000000bc0E63965946815d105E7591407704e6e1964E590000000000000000000000000000000000000000000000000000000005f5e100" }, { "to": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913", "maxFeePerGas": "0xa", "maxPriorityFeePerGas": "0x0", "value": "0x0", "data": "0x70a08231000000000000000000000000bc0E63965946815d105E7591407704e6e1964E59" } ], "blockOverride": { "blockNumber": "0x16abda1" } } ], { "blockNumber": "0x16abda1", "transactionIndex": 0 } ] }) headers = { 'Content-Type': 'application/json' } response = requests.request("POST", url, headers=headers, data=payload) print(response.text)
require "uri" require "json" require "net/http" url = URI("https://docs-demo.xdai.quiknode.pro/") https = Net::HTTP.new(url.host, url.port) https.use_ssl = true request = Net::HTTP::Post.new(url) request["Content-Type"] = "application/json" request.body = JSON.dump({ "jsonrpc": "2.0", "method": "eth_callMany", "id": 1, "params": [ [ { "transactions": [ { "to": "0x6b175474e89094c44da98b954eedeac495271d0f", "gas": "0xf4240", "maxFeePerGas": "0xa", "maxPriorityFeePerGas": "0x0", "value": "0x0", "data": "0xa9059cbb000000000000000000000000bc0E63965946815d105E7591407704e6e1964E590000000000000000000000000000000000000000000000000000000005f5e100" }, { "to": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913", "maxFeePerGas": "0xa", "maxPriorityFeePerGas": "0x0", "value": "0x0", "data": "0x70a08231000000000000000000000000bc0E63965946815d105E7591407704e6e1964E59" } ], "blockOverride": { "blockNumber": "0x16abda1" } } ], { "blockNumber": "0x16abda1", "transactionIndex": 0 } ] }) response = https.request(request) puts response.read_body
from web3 import Web3, HTTPProvider w3 = Web3(HTTPProvider('https://docs-demo.xdai.quiknode.pro/')) payload = { "jsonrpc": "2.0", "method": "eth_callMany", "id": 1, "params": [ [ { "transactions": [ { "to": "0x6b175474e89094c44da98b954eedeac495271d0f", "gas": "0xf4240", "maxFeePerGas": "0xa", "maxPriorityFeePerGas": "0x0", "value": "0x0", "data": "0xa9059cbb000000000000000000000000bc0E63965946815d105E7591407704e6e1964E590000000000000000000000000000000000000000000000000000000005f5e100" }, { "to": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913", "maxFeePerGas": "0xa", "maxPriorityFeePerGas": "0x0", "value": "0x0", "data": "0x70a08231000000000000000000000000bc0E63965946815d105E7591407704e6e1964E59" } ], "blockOverride": { "blockNumber": "0x16abda1" } } ], { "blockNumber": "0x16abda1", "transactionIndex": 0 } ] } response = w3.manager.request_blocking(payload["method"], payload["params"]) print(response)
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free