platform.getBlockchainStatus

Get the balance of an asset controlled by a given address. Get information about an asset.

This method will use 10 Compute Units.


Reference: Here

Parameters

  • blockchainID - string

Returns

  • status - string - status is one of:

    • Validating - string - The blockchain is being validated by this node.

    • Created - string - The blockchain exists but isn't being validated by this node.

    • Preferred - string - The blockchain was proposed to be created and is likely to be created but the transaction isn't yet accepted.

    • Syncing - string - This node is participating in this blockchain as a non-validating node.

    • Unknown - string - The blockchain either wasn't proposed or the proposal to create it isn't preferred. The proposal may be resubmitted.

// Result
{
    "jsonrpc": "2.0",
    "result": {
        "assetID": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
        "name": "Avalanche",
        "symbol": "AVAX",
        "denomination": "9"
    },
    "id": 1
}`
curl https://mainnet.avalanche.validationcloud.io/v1/<YOUR_API_KEY_HERE>/ext/bc/P \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{
    "jsonrpc": "2.0",
    "method": "platform.getBlockchainStatus",
    "params":{
        "blockchainID":"2NbS4dwGaf2p1MaXb65PrkZdXRwmSX4ZzGnUu7jm3aykgThuZE"
    },
    "id": 1
}'

Last updated