Marketplace has launched, further enabling blockchain developers! Learn more

Contents

platform.getBlockchainStatus 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. blockchainID - String

Returns:

  1. 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.

Code Examples:

const ethers = require("ethers");

(async () => {
  const provider = new ethers.providers.JsonRpcProvider(
    "http://sample-endpoint-name.network.quiknode.pro/token-goes-here/ext/bc/P"
  );
  const params = {
    "blockchainID": "2NbS4dwGaf2p1MaXb65PrkZdXRwmSX4ZzGnUu7jm3aykgThuZE",
  };
  const result = await provider.send("platform.getBlockchainStatus", params);
  console.log(result);
})();
Ready to get started? Create a free account