v1
latestOpenAPI 3.1.02026-07-13570316.1 KBWallets
Read Contract
Executes multiple read-only contract method calls in a single batch request. This endpoint allows efficient batch reading from multiple contracts on the same chain, significantly reducing the number of HTTP requests needed. Each call specifies the contract address, method signature, and optional parameters. Results are returned in the same order as the input calls, with individual success/failure status for each operation.
Authentication: Pass x-client-id header for frontend usage from allowlisted origins or x-secret-key for backend usage.
post/v1/contracts/read
Request body
Example request
{
"calls": [
{
"contractAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"method": "function name() view returns (string)"
},
{
"contractAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"method": "function totalSupply() returns (uint256)"
},
{
"contractAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"method": "function balanceOf(address) returns (uint256)",
"params": [
"0x742d35Cc6634C0532925a3b8D43C67B8c8B3E9C6"
]
}
],
"chainId": 8453
}Response
Contract read operations completed successfully. Returns an array of results corresponding to each input call, including both successful and failed operations.