Query L1 Details
Learn how to query L1 details on the P-Chain.

Subnet Details
Query the data of the Subnet from the P-Chain using the Avalanche API
Explore more
Avalanche Builder Tooling

To query the L1 details, you can use the Data API from AvaCloud.
Using the Data API
The Data API provides several ways to access subnet information:
-
REST API Endpoint:
-
Sample Request:
-
Query Parameters:
network
: Network name (e.g.,mainnet
orfuji
)subnetID
: The ID of your subnet
The API will return comprehensive details about your L1 subnet in the following format:
Is this guide helpful?