SonarX

Indexed Avalanche PBlockchain Data

The Avalanche P-Chain is the platform chain where the network keeps track of itself, recording validators, delegations, staking terms and the subnets built on Avalanche in UTXOs rather than accounts.

Avalanche P-Chain logo

How to query Avalanche P-Chain data with SonarX

Instant Data Share

Enabled on request

Snowflake, and file dumps to your object storage

Query Avalanche P-Chain blockchain data with plain SQL from a live database inside your own Snowflake account, populated with the indexed chain dataset. There is no pipeline to build and no second copy to store. The same dataset ships as file dumps to your own object storage for lakes and warehouses that are not Snowflake.

  • Full history as a Snowflake data-share
  • File dumps to S3 or your own object storage

Used for:

  • Analytics teams already on Snowflake that want Avalanche P-Chain data beside their existing tables
  • Fund accounting and treasury reporting that reconciles against a fixed history
  • Cross-chain questions answered in one SQL statement instead of one query per chain
  • Loading Avalanche P-Chain history into BigQuery, Databricks, Redshift or a Spark lake
  • Replacing a self-hosted indexer and the engineering time that keeps it running
  • Serving one governed dataset to several desks without copying it per team

Realtime API

Enabled on request

REST over the indexed dataset

Query indexed Avalanche P-Chain records over REST, reading the same dataset the share reads, with no warehouse in the path.

Used for:

  • Applications that need one answer rather than a table scan
  • Customer-facing screens where query latency is visible to a user
  • Services that have no data warehouse and do not want to run one
  • Prototyping against production data before committing to a share
  • Backend checks that run per request instead of per batch
  • Teams that want indexed Avalanche P-Chain data behind their own API layer

Avalanche P-Chain data: frequently asked questions

What is Avalanche P-Chain?

The P-Chain is the platform chain of Avalanche, one of the three chains that have made up the primary network since its 2020 launch, and it is where the network keeps track of itself. It runs the Platform VM under the same Snowman consensus as its siblings, and it has no EVM: no contracts, no receipts, no event logs. Its transactions are typed instead. Validators and delegators are registered with a stake and a fixed term, subnets and the blockchains inside them are created, and AVAX is imported from or exported to the other two chains. The bookkeeping is a UTXO model, so a stake is an output locked until its term ends rather than a balance marked as bonded, and addresses are bech32 strings carrying a P- prefix rather than the twenty-byte hex the C-Chain uses. Staking the primary network takes at least 2,000 AVAX.

Avalanche P-Chain data on SonarX

SonarX indexes the records this chain keeps: blocks, its typed transactions, validator and delegator registrations with their terms and commission shares, subnet and blockchain creation, reward outputs, the UTXO set behind them, and the imports and exports that move AVAX between chains. The same normalized model is used on every chain SonarX covers, so staking records line up with execution activity elsewhere.

Full historical coverage is provisioned for Avalanche P-Chain on request.

How SonarX indexes Avalanche P-Chain

Staking here is a term, not a stream. Nothing credits a validator per block: the record is a registration, a duration and a single reward output when the term closes, so a reward series has to be reconstructed from those three facts, with the commission share applied before a delegator’s cut is known. Identity is the second problem. The same operator holds bech32 addresses here and hex addresses on the C-Chain, and no transaction ties the two, so attribution runs through the export and import pair that moved the AVAX. Those pairs are also why a balance history built here alone shows value arriving from nowhere.

What teams build with Avalanche P-Chain data

Reward accounting is the workload this dataset exists for: what a validator earned across terms, what its delegators were owed after commission, and what a customer’s position actually returned. Staking analytics is the solution area that work sits in across the networks SonarX indexes. Stake-distribution research is the second, measuring concentration and turnover in the validator set over time. Network registry tracking is the third, following which subnets and blockchains were created and who secures them. Supply work is the fourth, since a complete AVAX position spans three chains and only reconciles when the transfers between them are matched. Ethereum Beacon Chain presents the same separation for a different network.

Getting Avalanche P-Chain data from SonarX

Tell us the delivery target, how far back you need and how fresh it has to be, and the share is scoped against that. Say whether C-Chain records are in scope as well, because most questions that start here end up crossing over. The published coverage matrix for every network SonarX indexes lives in the data documentation, and the rest of the catalogue is at all indexed chains.

Is there an Avalanche P-Chain data API?

APIs over indexed Avalanche P-Chain data are enabled on request: the same indexed dataset the Snowflake share reads, served over REST once provisioned. Tell us the lookup pattern you need.

How do I get Avalanche P-Chain data into Snowflake?

SonarX provisions a data-share into your own Snowflake account. The share appears as a database you query with SQL, so there is no pipeline to build and no second copy to store, and it stays current as SonarX advances the indexing pipeline.

How far back does Avalanche P-Chain coverage go?

The historical data-share and file delivery cover the platform chain from the 2020 launch of the primary network forward, and are provisioned on request. That is the full staking record for the network, since validators have been registered here since the first day the chain produced blocks.

Is this the same as Avalanche C-Chain data?

No, and the two barely resemble each other. C-Chain data is EVM data: contracts, twenty-byte addresses, receipts and event logs. The platform chain runs no virtual machine, so it holds none of that. What it records is who validates, who delegated to them, for how long, which networks exist on Avalanche and who secures them. Work that follows AVAX through staking needs both datasets.

Where do staking rewards appear in P-Chain data?

At the end of a staking period, not along the way. A validator or delegator commits AVAX for a fixed term, and the reward arrives as a new output paid to the address nominated when the stake was registered. Nothing accrues per block in the record, so a reward series has to be built from the registration transaction, its term and the payout that closes it, with the validator's commission share applied to delegator rewards.

Avalanche P-Chain logo

Get Avalanche P-Chain data from SonarX