RPC Nodes - How to make calls

Modified on Thu, 20 Apr 2023 at 04:38 PM

TABLE OF CONTENTS


Making an RPC-Node call

Tatum supports a long list of chains via RPC Nodes. You can find the API documentation at the following link.


Considering the default request URL: {{baseUrl}}/v3/blockchain/node/:chain/:path 

See an example request against Tatum Ethereum RPC nodes:

curl --location --request POST 'https://api.tatum.io/v3/blockchain/node/ETH' \
--header 'x-api-key: ##Mainnet_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc":"2.0",
    "method":"eth_blockNumber",
    "params":[],
    "id":1
}'
//Response:
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "0xfc186e"
}


Use :path for specific methods. Example: {{baseUrl}}/v3/blockchain/node/TRON/wallet/gettransactioninfobyblocknum



Supported Chains

 Name:chain
Algorandalgorand-testnet-algod

algorand-mainnet-algod

algorand-testnet-indexer

algorand-mainnet-indexer

Arbitrumarb-nova-mainnet

arb-one-mainnet

arb-testnet

Auroraaurora-mainnet

aurora-testnet

Avalanche C-Chainavax-mainnet

avax-testnet

Avalanche P-Chainavax-p-mainnet

avax-p-testnet

Avalanche X-Chain

avax-x-mainnet

avax-x-testnet

Bitcoinbitcoin-mainnet

bitcoin-testnet

Bitcoin Cashbch-mainnet

bch-testnet

BNB Beacon Chainbnb-mainnet

bnb-testnet

BNB Smart Chainbsc-mainnet

bsc-testnet

Cardanocardano-preprod

cardano-mainnet

Celocelo-mainnet

celo-testnet

Cronoscro-mainnet

cro-testnet

Dogecoindoge-mainnet

doge-testnet

Elrondegld-mainnet

egld-testnet

EOSIOeos-mainnet

eos-testnet

Ethereum

ethereum-mainnet

ethereum-goerli

ethereum-sepolia
Fantomfantom-mainnet

fantom-testnet

Flowflow-mainnet

flow-testnet

Gnosisgno-mainnet

gno-testnet

Harmonyone-mainnet-s0

one-testnet-s0

Klaytnklaytn-baobab

klaytn-cypress

KuCoin Community Chainkcs-testnet

kcs-mainnet

Kusamaksm-mainnet

ksm-testnet

Lisklisk-mainnet

lisk-testnet

Litecoinlitecoin-core-mainnet

litecoin-core-testnet

NEARnear-mainnet

near-testnet

Oasis Networkoasis-mainnet

oasis-testnet

Optimismoptimism-mainnet

optimism-testnet

Palmpalm-mainnet

palm-testnet

Polkadotdot-mainnet

dot-testnet

Polygonpolygon-mumbai

polygon-mainnet

RSKrsk-mainnet

rsk-testnet

Solanasolana-mainnet

solana-devnet

Stellarstellar-mainnet

stellar-testnet

Tezostezos-mainnet

tezos-testnet

TRONtron-mainnet

tron-testnet

VeChainvechain-testnet

vechain-mainnet

XinFinxdc-mainnet

xdc-testnet

XRPripple-mainnet

ripple-testnet

ZCashzcash-mainnet

zcash-testnet

Zilliqazilliqa-mainnet

zilliqa-testnet

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article