RPC Nodes - How to make calls

Modified on Mon, 30 Jan 2023 at 09:10 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
AlgorandALGO
ArbitrumARB
AuroraAURORA
Avalanche C-ChainAVAX
Avalanche P-ChainAVAX
Avalanche X-ChainAVAX
BitcoinBTC
Bitcoin CashBCH
BNB Beacon ChainBNB
BNB Smart ChainBSC
CardanoADA
CeloCELO
CronosCRO
DogecoinDOGE
ElrondEGLD
EOSIOEOS
EthereumETH
FantomFTM
FlowFLOW
GnosisGNO
HarmonyONE
KlaytnKLAY
KuCoin Community ChainKCS
KusamaKSM
LiskLISK
LitecoinLTC
NEARNEAR
NeoNEO
Oasis NetworkOASIS
OptimismOPTIMISM
PalmPALM
PolkadotDOT
PolygonMATIC
RSKRSK
SolanaSOL
StellarXLM
TezosTEZOS
TRONTRON
VeChainVET
XinFinXDC
XRPXRP
ZCashZCASH
ZilliqaZIL

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

Feedback sent

We appreciate your effort and will try to fix the article