SonarX

Indexed X LayerBlockchain Data

X Layer is the ZK rollup OKX built with the Polygon CDK, proving its batches to Ethereum and metering gas in OKB, the exchange's own token, rather than in ETH.

X Layer logo

How to query X Layer data with SonarX

Instant Data Share

Available today

Snowflake, and file dumps to your object storage

Query X Layer 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
  • Real-time delivery, current to chain tip — on request

Used for:

  • Analytics teams already on Snowflake that want X Layer 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 X Layer 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

Kafka Streaming

Enabled on request

Event stream

Consume X Layer activity as a continuous stream of normalized records, produced as the chain is indexed instead of polled for.

Used for:

  • Trading and execution systems that act on X Layer activity within seconds
  • Fraud and anomaly detection that has to fire before settlement
  • Live dashboards and alerting on X Layer wallet or protocol activity
  • Feeding a stream processor that already reads from Kafka
  • Keeping an internal store hot without waiting for a batch window
  • Event-driven services that would otherwise poll on a timer

Balances

Enabled on request

Tables and REST

Read what a X Layer address held, either as it stands now or exactly as it stood at a past block or timestamp.

  • Point-in-time balance tables, as at any block or timestamp
  • Real-time balances API for latest and historical balances
  • Batch API for wallets, tokens and balances in bulk

Used for:

  • Reconstructing X Layer portfolios and NAV as at a reporting date
  • Audit and reconciliation work that has to be repeatable months later
  • Wallet and portfolio products that render X Layer balances on page load
  • Compliance checks that read one X Layer address at one block height
  • Refreshing holdings for a whole book of accounts on a schedule
  • Tax and cost-basis workflows that need holdings at each event

Realtime API

Enabled on request

REST over the indexed dataset

Query indexed X Layer 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 X Layer data behind their own API layer

X Layer data: frequently asked questions

What is X Layer?

X Layer is a ZK rollup on Ethereum, operated by the exchange OKX and assembled from the Polygon CDK, the same toolkit behind Polygon zkEVM. It has been on mainnet since 2024. Transactions execute on the rollup, batches are proved with zero-knowledge proofs, and a contract on Ethereum verifies each proof, which is what settles the batch; there is no challenge window, because settlement waits on proving instead. Execution is EVM-compatible at the bytecode level, so Solidity contracts and twenty-byte addresses port across unchanged. Gas is paid in OKB, an ERC-20 issued on Ethereum and bridged in, so the fee asset is the exchange’s own token rather than ETH. The network answers to chain ID 196, and the testnet that preceded it ran under a different name.

X Layer data on SonarX

SonarX indexes X Layer end to end: blocks and headers, transactions and receipts, decoded event logs, execution traces including internal value transfers, and token transfers and balances, with batch and verification records identifiable beside them.

Full historical coverage is available today as a data-share or a file delivery. Real-time delivery is enabled on request. Balance tables and the balance APIs can be enabled for X Layer on request. Kafka streaming can be enabled for X Layer on request.

How SonarX indexes X Layer

The fee asset is the first adjustment. Gas is charged in OKB, whose supply lives on Ethereum, so a cost series here is denominated in an asset that also moves on the L1, and comparing it with an ETH-priced rollup needs a conversion the records do not carry. Proving cadence is the second: a batch is sequenced, proved, then verified on Ethereum, so a transaction is readable well before it settles and a reconciliation keyed on the L2 timestamp calls finished what is still in flight. It inherits the CDK’s batch shapes, so its L1 side reads the way Polygon zkEVM’s did.

What teams build with X Layer data

Token accounting on OKB is the workload this chain adds. The asset pays for gas here, is issued on Ethereum and moves between the two, so supply, distribution and spend hold together only when both chains are read against each other. Lending and perp positions rebuilt from decoded events are the second, which is where DeFi analytics work sits. Flow analysis is the third, following capital between the exchange’s chain and the rest of the ecosystem, where the useful question is what arrives and what leaves rather than what sits still. Settlement research is the fourth and belongs to ZK rollups specifically: how long a batch takes from sequencing to verification, which is what a Scroll comparison actually measures.

Getting X Layer 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. X Layer history is available now, with proof-verification records kept beside the blocks they settle. 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 X Layer data API?

Real-time and batch APIs over indexed X Layer 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 X Layer 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 X Layer coverage go?

The historical data-share and file delivery cover the chain from its 2024 mainnet forward, and are available today. The testnet that ran before it under a different name is a separate network and is not part of this history, so a series that starts earlier is reading different addresses and different state.

Is X Layer a ZK rollup or an optimistic rollup?

A ZK rollup. Batches are proved with zero-knowledge proofs and verified by a contract on Ethereum, using the proving stack that comes with the Polygon CDK, so there is no challenge window to wait out. Some directories still list the chain as optimistic, which matters because a settlement model should key on when a proof was verified rather than on when a dispute period expired.

X Layer logo

Get X Layer data from SonarX