RPC API
Any read-only JSON-RPC method, answered by a healthy node. Nothing that signs or sends.
You send
- method 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
+ 2 optional: params, chain
You get back
JSON with these fields, inside data:
method, result, chain
Example and every field explained ↓It costs
$0.001 / call
The first 100 priced calls a day are free on every key.
- Freshness
- live, every call
- Auth
- Bearer key
- Chains
- 60 chains
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"
}'Swap in your key for c2a_your_key. No key yet? curl -X POST https://api.crypto2api.com/v1/keys makes one, free, no sign-up, or just press Run below.
Used forChain & perps
Works on 60 chains. Pass chain=; it defaults to solana. Pick one in the playground and the cURL, JavaScript, Python and MCP snippets all follow it.
- 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
- fantom
- opbnb
- zora
- mode
- taiko
- lisk
- fraxtal
- apechain
- story
- sophon
- gnosis
- core
- xlayer
- hedera
- polygonzkevm
- immutable
- kaia
- aurora
- boba
- rootstock
- bitlayer
- merlin
- etherlink
- xrplevm
- vana
- bob
- shape
- beam
Parameters
Required first. Each example is a value that works.
- methodrequiredbody · string
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.
e.g. getBalance
- paramsoptionalbody · object
The method's params array, as in the chain's JSON-RPC docs (solana.com/docs/rpc, ethereum.org/developers/docs/apis/json-rpc).
e.g. ["9yj3zvLS3fDMqi1F8zhkaWfq8TZpZWHe6cz1Sgt7djXf"]
default []
- chainoptionalbody · string
Which chain: one of the 60 listed above. Default solana.
e.g. solana
default solana
Response
Every answer is { data, cost_usd, balance_usd, cached, request_id }. Below is a real data from this endpoint, read when the page was built.
Example data
Key fields
- methodstring
- Method.
- resultobject
- Result: context, value.
- chainstring
- Which chain this answer is for.
The wrapper every answer comes in
- data
- The answer itself: the example above.
- cost_usd
- What this one call was charged — 0 while you are inside the free 100 a day.
- balance_usd
- What is left on the key after it.
- cached
- true means the answer was shared with another caller.
- request_id
- Quote this if you report something; it is on your Activity page too.
A fact the API could not read is left out or named, never estimated. When an upstream is down you get a 503 with a stable code you can branch on, not a half-filled answer.
Try it
A real call against the live API. The first 100 priced calls a day are free.
Response
What this example answered when the page was built, shortened. Run it for a live answer.
Copy it
Runs as-is, with your key in place of c2a_your_key. It follows the boxes above, on Solana.
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"
}'