Get Subnet / L1 info (P-Chain)
avax_pchain_get_subnetRetrieve subnet details including control keys, threshold, sovereign L1 status, manager, and blockchains via platform.getSubnet.
Instructions
Get Subnet details via platform.getSubnet: control keys, threshold, whether it has been converted to a sovereign L1 (isPermissioned=false), manager chain/address, and blockchains in the subnet.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"subnet_id": "<subnet_id>"
},
"name": "avax_pchain_get_subnet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | Primary network: mainnet or fuji | fuji |
| subnet_id | Yes | Subnet ID (CB58) |