RPC
Any read-only JSON-RPC method, answered by a healthy node. Nothing that signs or sends.
POST /v1/crypto/rpc
- Chains
- +54on 60 chains; pick one with
chain. The answer has the same shape on every one. - Price
- Each call costs $0.001. Your first 100 priced calls each day are free, so you can try it before adding credits.
- Freshness
- Computed fresh on every call.
- Answer
- Always
{ data, cost_usd, balance_usd, cached, request_id }.
Parameters
| Name | Type | Required | What it is | Example |
|---|---|---|---|---|
| methodbody | string | yes | Solana: one of the 50 read-only methods: getAccountInfo, getBalance, getBlock, getBlockHeight, getBlockTime, getBlocks, getBlocksWithLimit, getBlockCommitment, getBlockProduction, getClusterNodes, getEpochInfo, getEpochSchedule, getFeeForMessage, getFirstAvailableBlock, getGenesisHash, getHealth, getHighestSnapshotSlot, getIdentity, getInflationGovernor, getInflationRate, getInflationReward, getLargestAccounts, getLatestBlockhash, getLeaderSchedule, getMaxRetransmitSlot, getMaxShredInsertSlot, getMinimumBalanceForRentExemption, getMultipleAccounts, getProgramAccounts, getRecentPerformanceSamples, getRecentPrioritizationFees, getSignatureStatuses, getSignaturesForAddress, getSlot, getSlotLeader, getSlotLeaders, getStakeMinimumDelegation, getSupply, getTokenAccountBalance, getTokenAccountsByDelegate, getTokenAccountsByOwner, getTokenLargestAccounts, getTokenSupply, getTransaction, getTransactionCount, getVersion, getVoteAccounts, isBlockhashValid, minimumLedgerSlot, simulateTransaction. EVM chains: eth_blockNumber, eth_call, eth_chainId, eth_estimateGas, eth_feeHistory, eth_gasPrice, eth_getBalance, eth_getBlockByHash, eth_getBlockByNumber, eth_getBlockTransactionCountByNumber, eth_getCode, eth_getLogs, eth_getStorageAt, eth_getTransactionByHash, eth_getTransactionCount, eth_getTransactionReceipt, eth_maxPriorityFeePerGas, eth_syncing, net_version, web3_clientVersion. | getBalance |
| paramsbody | object | no, default [] | The method's params array, as in the chain's JSON-RPC docs (solana.com/docs/rpc, ethereum.org/developers/docs/apis/json-rpc). | ["9yj3zvLS3fDMqi1F8zhkaWfq8TZpZWHe6cz1Sgt7djXf"] |
| chainbody | string | no, default solana | Which chain: solana, ethereum, base, bsc, arbitrum, polygon, avalanche, optimism, hyperevm, monad, abstract, sonic, berachain, sei, linea, zksync, mantle, unichain, ronin, cronos, worldchain, scroll, celo, pulsechain, ink, soneium, metis, manta, katana, plasma, flowevm, kava, tron, sui, ton, aptos, near, starknet, xrpl, injective, hyperliquid, robinhood, elysium, arc, megaeth, fantom, opbnb, zora, mode, taiko, lisk, fraxtal, apechain, story, sophon, gnosis, core, xlayer, hedera, polygonzkevm, immutable, kaia, aurora, boba, shibarium, rootstock, bitlayer, merlin, etherlink, xrplevm, vana, bob, shape, beam, memecore, stable, tempo, stacks, cardano, stellar. Default solana. | solana |
Try it
A real call. Your first 100 priced calls a day are free; after that it costs the price above. Edit anything and run it.
Response
Example data (the answer sits inside the envelope)
{
"data": {
"chain": "solana",
"method": "getBalance",
"result": {
"context": {
"apiVersion": "4.4.2",
"slot": 475114757
},
"value": 10485658927
}
},
"cost_usd": 0.001,
"balance_usd": "…",
"cached": false,
"request_id": "req_…"
}What the example answered when this page was built, shortened. Run it for a live answer.
Copy it
Runs as-is with your key in place of c2a_your_key. The MCP block gives an agent every endpoint in one server.
curl https://api.crypto2api.com/v1/crypto/rpc \
-H "Authorization: Bearer c2a_your_key" \
-H "Content-Type: application/json" \
-d '{
"method": "getBalance",
"params": [
"9yj3zvLS3fDMqi1F8zhkaWfq8TZpZWHe6cz1Sgt7djXf"
],
"chain": "solana"
}'