Skip to main content

platform.getBlockchains RPC Method

Get all the blockchains that exist (excluding the P-Chain).

Updated on
Oct 3, 2023

platform.getBlockchains RPC Method

Parameters

This method does not accept any parameters

Returns

blockchainsnameidsubnetIDvmID
[Object]StringStringStringString
blockchains- [Object] - All of theblockchains that exists on the Avalanche network.- name - String - The human-readablename of this blockchain.- id - String - The blockchain ID.- subnetID - String - The ID of the Subnetthat validates this blockchain.- vmID - String - The ID of theVirtual Machine the blockchain runs.
name
String
The human-readablename of this blockchain.
id
String
The blockchain ID.
subnetID
String
The ID of the Subnetthat validates this blockchain.
vmID
String
The ID of theVirtual Machine the blockchain runs.
Request
1
curl --location --request POST https://docs-demo.avalanche-mainnet.quiknode.pro/ext/bc/C/rpc/ext/bc/P \
2
--header 'Content-Type: application/json' \
3
--data-raw '{
4
"jsonrpc": "2.0",
5
"method": "platform.getBlockchains",
6
"params":{},
7
"id": 1
8
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free