Overview of Data API v2
The Blockchain API v2 provides developers with a robust and streamlined interface for accessing structured on-chain data from multiple blockchain networks. Built for reliability and ease of use, the API delivers comprehensive data through a suite of targeted endpoints. The v2 API focuses on providing detailed information for core blockchain entities, including tokens, NFTs, transactions, blocks, and ENS records. This enables developers to build a wide range of applications, from wallets and portfolio trackers to detailed analytics platforms and custom explorers.Summary of the Data APIs:
The v2 API is organized into several distinct services, each catering to specific data needs with consistent, blockchain-agnostic response schemas.Tokens API
Features: Access detailed information about fungible tokens (like ERC20). Retrieve wallet balances, historical daily portfolio snapshots, token transfers, and current approvals. You can also look up token holder lists and get the latest price for any token. Use Cases: Ideal for building wallets, portfolio management dashboards, token-gated applications, and financial analysis tools.NFT API
Features: Get comprehensive data on Non-Fungible Tokens (NFTs). You can retrieve all NFTs held by a specific wallet or all NFTs belonging to a particular collection. The API also allows looking up detailed collection information, including metadata and trait statistics. Use Cases: Perfectly suited for creating NFT galleries, marketplaces, portfolio trackers, and tools for analyzing NFT collections.Transactions API
Features: Provides in-depth access to transaction data. You can fetch transactions for a specific wallet, look up a single transaction by its hash, or retrieve a summary of a wallet’s activity, including its earliest and latest transactions. Use Cases: Excellent for building transaction history feeds, accounting and tax software, and analytical tools that monitor on-chain activity.Events API
Features: Offers foundational access to blockchain data. You can look up block details by number, by timestamp, or get a list of recent blocks. It also allows for querying decoded smart contract events, which can be filtered by the contract address and event signature. Use Cases: Tailored for developing custom blockchain explorers, monitoring specific smart contract interactions, and real-time event tracking systems.ENS API
Features: Simplifies interaction with the Ethereum Name Service (ENS). The API allows you to resolve an ENS domain name to its associated wallet address or perform a reverse lookup to find the ENS name linked to a wallet address. Use Cases: Essential for applications that require user-friendly wallet identification, such as wallets, dApps, and profile services.Supported Networks
0xAPI currently supports the following networks:Name | Type | Network Slug |
---|---|---|
Ethereum | Mainnet | mainnet |
Name | Type | Network Slug |
---|---|---|
Apechain | Mainnet | apechain |
Mantle | Mainnet | mantle |
Polygon | Mainnet | polygon |
Arbitrum One | Mainnet | arbitrum-one |
Apechain Curtis | Testnet | apechain-curtis |
Base | Mainnet | base |
BNB Chain | Mainnet | bsc |
Blast | Mainnet | blast |
Gnosis | Mainnet | gnosis |
Linea | Mainnet | linea |
Manta | Mainnet | manta |
Metis | Mainnet | andromeda |
Mode | Mainnet | mode |
Mode Sepolia | Testnet | mode-sepolia |
Optimism | Mainnet | optimism |
Polygon | Mainnet | polygon |
Polygon Amoy | Testnet | polygon-amoy |
Tron | Mainnet | tron |
Sei | Mainnet | sei |