Marketplace has launched, further enabling blockchain developers! Learn more

Contents

platform.validatedBy 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 - the blockchain’s ID.

Returns:

  1. subnetID - string - the ID of the Subnet that validates the blockchain.

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