Complete reference for all 36 JSON-RPC methods supported on the RobinHood Chain.
Send JSON-RPC requests to the RobinHood Chain endpoint using any HTTP client or Web3 library.
// Using fetch
const response = await fetch("https://robinhood-mainnet.g.alchemy.com/v2/YOUR_KEY", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
jsonrpc: "2.0",
method: "eth_blockNumber",
params: [],
id: 1
})
});
// Using ethers.js
import { JsonRpcProvider } from "ethers";
const provider = new JsonRpcProvider("https://robinhood-mainnet.g.alchemy.com/v2/YOUR_KEY");
const blockNumber = await provider.getBlockNumber();
// Using viem
import { createPublicClient, http } from "viem";
const client = createPublicClient({
transport: http("https://robinhood-mainnet.g.alchemy.com/v2/YOUR_KEY")
});
const block = await client.getBlockNumber();eth_blockNumberReturns the current block number
eth_getBlockByNumber2 paramsReturns information about a block by number
eth_getBlockByHash2 paramsReturns information about a block by hash
eth_getBlockTransactionCountByNumber1 paramReturns the number of transactions in a block by number
eth_getBlockTransactionCountByHash1 paramReturns the number of transactions in a block by hash
eth_getUncleByBlockNumberAndIndex2 paramsReturns uncle block info by number and index
eth_getUncleCountByBlockNumber1 paramReturns the number of uncles in a block by number
eth_getBalance2 paramsReturns the balance of an address in wei
eth_getTransactionCount2 paramsReturns the number of transactions sent from an address (nonce)
eth_getCode2 paramsReturns the code at a given address (for smart contracts)
eth_getStorageAt3 paramsReturns the value from a storage position at a given address
eth_accountsReturns a list of addresses owned by the client
eth_getTransactionByHash1 paramReturns transaction details by hash
eth_getTransactionReceipt1 paramReturns the receipt of a transaction
eth_getTransactionByBlockNumberAndIndex2 paramsReturns a transaction by block number and index
eth_getTransactionByBlockHashAndIndex2 paramsReturns a transaction by block hash and index
eth_sendRawTransaction1 paramSubmits a signed transaction to the network
eth_estimateGas2 paramsEstimates gas needed for a transaction
eth_call3 paramsExecutes a message call without creating a transaction
eth_gasPriceReturns the current gas price in wei
eth_maxPriorityFeePerGasReturns the current max priority fee per gas
eth_feeHistory3 paramsReturns fee history for a range of blocks
net_versionReturns the current network ID
net_listeningReturns whether the client is actively listening for connections
net_peerCountReturns the number of peers connected to the node
eth_chainIdReturns the chain ID
eth_syncingReturns syncing status or false if not syncing
web3_clientVersionReturns the client version
eth_protocolVersionReturns the current Ethereum protocol version
eth_getLogs3 paramsReturns logs matching a filter
eth_newFilter2 paramsCreates a new filter for log events
eth_getFilterChanges1 paramReturns new log entries since last poll for a filter
eth_uninstallFilter1 paramRemoves a filter
eth_miningReturns whether the client is currently mining
eth_hashrateReturns the number of hashes per second the node is mining
eth_coinbaseReturns the client coinbase address