Marketplace has launched, further enabling blockchain developers! Learn more

Contents

platform.validates 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. subnetID - string - the blockchain IDs.

Returns:

  1. blockchainIDs - []string - Each element is the ID of a blockchain the Subnet validates.

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 = {
    "subnetID": "BE5Nv8objSftNwxzcxkZGwCfVs3FPdJBio4DBwCF2A5i7RasU",
  };
  const result = await provider.send("platform.validates", params);
  console.log(result);
})();
Ready to get started? Create a free account