Skip to content
Alchemy Logo

X Layer API FAQ

Frequently asked questions about the X Layer API

X Layer is a zero-knowledge (ZK) Layer 2 network built by OKX using Polygon CDK, offering full EVM compatibility so existing Ethereum smart contracts, tools, and wallets work with zero code changes. It leverages zkSNARK proofs to compress transactions, resulting in sub-cent fees and block times of approximately 400 milliseconds.

See the X Layer API quickstart guide to start building on X Layer.

The X Layer API lets you interact with the X Layer mainnet. You can execute transactions, query onchain data, and interact with the X Layer network using the JSON-RPC standard.

Yes, X Layer is EVM compatible.

X Layer uses the JSON-RPC API standard. This API enables blockchain interaction on the X Layer network, letting you read block and transaction data, query chain information, execute smart contracts, and store data onchain.

X Layer supports standard Ethereum JSON-RPC methods. Some chain-specific methods may vary. Check the X Layer API endpoints documentation for a complete list.

When you access the X Layer network through a node provider like Alchemy, you use an API key to send transactions and retrieve data. We recommend you sign up for a free API key.

Common Ethereum libraries like ethers.js are compatible with X Layer, given its EVM nature.

If you have questions or feedback, contact us at [email protected] or open a ticket in the Alchemy Dashboard.

Was this page helpful?