Marketplace has launched, further enabling blockchain developers! Learn more

Contents

platform.getBlockchains RPC method

The API credit value for this method is 1 . To learn more about API credits and each method's value, visit the API Credits page.

Parameters:

  1. None

Returns:

  1. blockchains - [Object] - All of the blockchains that exists on the Avalanche network.

    - name - String - The human-readable name of this blockchain.

    - id - String - The blockchain ID.

    - subnetID - String - The ID of the Subnet that validates this blockchain.

    - vmID - String - The ID of the Virtual Machine the blockchain runs.

Code Examples:

curl --location --request POST http://sample-endpoint-name.network.quiknode.pro/token-goes-here/ext/bc/P \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "method": "platform.getBlockchains",
    "params":{},
    "id": 1
}'
Ready to get started? Create a free account