To use the platform.getBlockchains method on the P-Chain, ensure that the end of your URL includes ext/bc/P.
Parameters
This method does not accept any parameters
Returns
- blockchainsarray
All of the blockchains that exists on the network
- namestring
The human-readable name of this blockchain
- idstring
The blockchain ID
- subnetIDstring
The ID of the Subnetthat validates this blockchain.
- vmIDstring
The ID of theVirtual Machine the blockchain runs.
Request
Response
1{2"jsonrpc": "2.0",3"result": {4"blockchains": [5{6"id": "umkbhSrjVw5nUvy1eo25AdrjRkPBdtzAMewuxA2rqEx4YMo4c",7"name": "C-Chain",8"subnetID": "11111111111111111111111111111111LpoYY",9"vmID": "mgj786NP7uDwBCcq6YwThhaN8FLyybkCa4zBWTQbNgmK6k9A6"10},11{12"id": "fK5e6T3EniMqagBkxXjAug9EbhFDZbEzPPr4f22uwMoP5i2cJ",13"name": "X-Chain",14"subnetID": "11111111111111111111111111111111LpoYY",15"vmID": "jvYyfQTxGMJLuGWa55kdP2p2zSUYsQ5Raupu4TW34ZAUBAbtq"16}17]18},19"id": 120}
1{2"jsonrpc": "2.0",3"result": {4"blockchains": [5{6"id": "umkbhSrjVw5nUvy1eo25AdrjRkPBdtzAMewuxA2rqEx4YMo4c",7"name": "C-Chain",8"subnetID": "11111111111111111111111111111111LpoYY",9"vmID": "mgj786NP7uDwBCcq6YwThhaN8FLyybkCa4zBWTQbNgmK6k9A6"10},11{12"id": "fK5e6T3EniMqagBkxXjAug9EbhFDZbEzPPr4f22uwMoP5i2cJ",13"name": "X-Chain",14"subnetID": "11111111111111111111111111111111LpoYY",15"vmID": "jvYyfQTxGMJLuGWa55kdP2p2zSUYsQ5Raupu4TW34ZAUBAbtq"16}17]18},19"id": 120}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free