Links
Comment on page

platform.getBlockchains

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

Signature​​

platform.getBlockchains() ->
{
blockchains: []{
id: string,
name:string,
subnetID: string,
vmID: string
}
}
  • blockchains is all of the blockchains that exists on the Avalanche network.
  • name is the human-readable name of this blockchain.
  • id is the blockchain’s ID.
  • subnetID is the ID of the Subnet that validates this blockchain.
  • vmID is the ID of the Virtual Machine the blockchain runs.

Example

Request
curl -X POST --data '{
"jsonrpc": "2.0",
"method": "platform.getBlockchains",
"params": {},
"id": 1
}' -H 'content-type:application/json;' https://ava-mainnet.blastapi.io/<project-id>/ext/P
Result
{
"jsonrpc": "2.0",
"result": {
"blockchains": [{
"id": "DKtd96mRjG1fgfL1Bcr9gppJaPxi9345iLR3W9ZZwq8ZChY9A",
"name": "GemUni",
"subnetID": "4vczxAbLhSpzypadHFEfY8Kn2kibhcZLQgoX9A34rAnADyXnp",
"vmID": "srEXiWaHjBgJPLWjtprZFhiFnFJkY2URD4ug4SJdAnLbkBBGm"
}, {
"id": "q2aTwKuyzgs8pynF7UXBZCU7DejbZbZ6EUyHr3JQzYgwNPUPi",
"name": "DFK Chain",
"subnetID": "Vn3aX6hNRstj5VHHm63TCgPNaeGnRSqCYXQqemSqDd2TQH4qJ",
"vmID": "mDV3QWRXfwgKUWb9sggkv4vQxAQR4y2CyKrt5pLZ5SzQ7EHBv"
}, {
"id": "ta1bV7y93DDiU6x9YgkUf89L5TS7h8wFDDKi8HjWezrTgAMy9",
"name": "C Chain PoW",
"subnetID": "2dc3NncNG29XHsByJSVAHwEgYT3XFtR3b4zPxi5KFr7eeCr6QX",
"vmID": "mgj786NP7uDwBCcq6YwThhaN8FLyybkCa4zBWTQbNgmK6k9A6"
}, {
"id": "2YdeqYZZfGzhz6guB7f8kmg3QxhjEKwKnbbWUksNRHcF64eLcY",
"name": "X Chain PoW",
"subnetID": "2dc3NncNG29XHsByJSVAHwEgYT3XFtR3b4zPxi5KFr7eeCr6QX",
"vmID": "jvYyfQTxGMJLuGWa55kdP2p2zSUYsQ5Raupu4TW34ZAUBAbtq"
}, {
"id": "25i636VUB5wvghNqumGRPGawyK5MSpmVTQiyy5s8SY9ya4CtRR",
"name": "YOUR DOCS SUCKS NO ANY DEV HELPS",
"subnetID": "2TSYtJmLdmBJCTcEP6ZeQ3d7urg1GbrKtVMMdd7nmz46z22PSC",
"vmID": "jvYyfQTxGMJLuGWa55kdP2p2zSUYsQ5Raupu4TW34ZAUBAbtq"
}, {
"id": "2ghHT5a5kbtm4rn2vfod7sZcLRBQHLFa5827X72hKRAGXCKkAq",
"name": "MAKOIN",
"subnetID": "2TSYtJmLdmBJCTcEP6ZeQ3d7urg1GbrKtVMMdd7nmz46z22PSC",
"vmID": "jvYyfQTxGMJLuGWa55kdP2p2zSUYsQ5Raupu4TW34ZAUBAbtq"
}, {
"id": "29ZujU1g8h2qc2JgQjFo7Wby3F2hJhVGohkbeQ9iZ8LjMy2fmZ",
"name": "Testnet",
"subnetID": "jwz8ycZ8V2yHH5b1ysqtZvxtB5UCq34VoHx6C6uy9Gs4GeQ5t",
"vmID": "mgj786NP7uDwBCcq6YwThhaN8FLyybkCa4zBWTQbNgmK6k9A6"
}, {
"id": "iybTYo3sgDgL8c9hyH8qBJaHJ4V5x5Pzy8mXcTSqneoHHPPfN",
"name": "Dthereum",
"subnetID": "29ejv3iGb7xiAiCiTyxqm5cSR81CkitmWttxddRcr5wnrC3uhW",
"vmID": "mgj786NP7uDwBCcq6YwThhaN8FLyybkCa4zBWTQbNgmK6k9A6"
}, {
"id": "GF5KEgiGs2yhDFTL1KgfmszU61U3ipSMpQJZsra5nFysots68",
"name": "Bthereum",
"subnetID": "29ejv3iGb7xiAiCiTyxqm5cSR81CkitmWttxddRcr5wnrC3uhW",
"vmID": "mgj786NP7uDwBCcq6YwThhaN8FLyybkCa4zBWTQbNgmK6k9A6"
}, {
"id": "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
"name": "C-Chain",
"subnetID": "11111111111111111111111111111111LpoYY",
"vmID": "mgj786NP7uDwBCcq6YwThhaN8FLyybkCa4zBWTQbNgmK6k9A6"
}, {
"id": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
"name": "X-Chain",
"subnetID": "11111111111111111111111111111111LpoYY",
"vmID": "jvYyfQTxGMJLuGWa55kdP2p2zSUYsQ5Raupu4TW34ZAUBAbtq"
}]
},
"id": 1
}