Ethereum icon

Ethereum

Interact with Ethereum blockchain

Custom RPC → Request

AI-generated

Summary

Execute a custom Ethereum RPC method

Inputs

  • rpcMethod (required) — The RPC method to call, e.g., eth_getBalance, eth_call, debug_traceTransaction
  • rpcParams — Parameters for the RPC method as a JSON array, e.g., ["0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb", "latest"]

Output shape

the raw RPC response payload (any JSON)

On success the response is returned; on error the operation may reject or return an error object

Examples

Example 1: Query current Ether balance of an address

rpcMethod: eth_getBalance, rpcParams: ["0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb", "latest"]

Example 2: Call a read‑only contract function

rpcMethod: eth_call, rpcParams: [{"to":"0x123...","data":"0x...."}, "latest"]

Links

Discussion