API Reference

Ethereum / EVM-based chains

Ethereum and all EVM-based blockchains like BNB Smart Chain or Polygon

Available blockchains / endpoints:

Blockchain nameEndpoint
Ethereumrpc.chain49.com/ethereum
Ethereum Goerli Testnetrpc.chain49.com/ethereum-goerli
Ethereum Sepolia Testnetrpc.chain49.com/ethereum-sepolia
BNB Smart Chainrpc.chain49.com/bsc
Polygon PoSrpc.chain49.com/polygon
Polygon PoS Mumbai Testnetrpc.chain49.com/polygon-mumbai
Gnosisrpc.chain49.com/gnosis
Gnosis Chiado Testnetrpc.chain49.com/gnosis-chiado

Detailed docs for each method: https://ethereum.org/en/developers/docs/apis/json-rpc/

All allowed methods:

  • web3_clientVersion
  • web3_sha3
  • net_version
  • net_listening
  • eth_syncing
  • eth_mining
  • eth_gasPrice
  • eth_blockNumber
  • eth_chainId
  • eth_getBalance
  • eth_getStorageAt
  • eth_getTransactionCount
  • eth_getBlockTransactionCountByHash
  • eth_getBlockTransactionCountByNumber
  • eth_getUncleCountByBlockHash
  • eth_getUncleCountByBlockNumber
  • eth_getCode
  • eth_sendRawTransaction
  • eth_call
  • eth_estimateGas
  • eth_getBlockByHash
  • eth_getBlockByNumber
  • eth_getTransactionByHash
  • eth_getTransactionByBlockHashAndIndex
  • eth_getTransactionByBlockNumberAndIndex
  • eth_getTransactionReceipt
  • eth_getUncleByBlockHashAndIndex
  • eth_getUncleByBlockNumberAndIndex
  • eth_getWork
  • eth_getProof

Examples:

C49_API_KEY=INSERT_YOUR_KEY_HERE

# Ethereum example
curl https://rpc.chain49.com/ethereum \
 -d '{"jsonrpc":"2.0","id":"0","method":"eth_getBlockByNumber","params":["0x1b4", true]}' \
 -H 'Content-Type: application/json' \
 -H 'X-API-Key: '$C49_API_KEY
 
# Polygon example
curl https://rpc.chain49.com/polygon \
 -d '{"jsonrpc":"2.0","id":"0","method":"eth_chainId","params":""}' \
 -H 'Content-Type: application/json' \
 -H 'X-API-Key: '$C49_API_KEY