Developer API
OpenAPIQuick start
curl --fail --silent 'https://inkexplorer.xyz/api/explorer/blocks'const base = "https://inkexplorer.xyz/api";
const response = await fetch(base + '/explorer/blocks');
if (!response.ok) throw new Error('HTTP ' + response.status);
const page = await response.json();
console.log(page.items);
if (page.next_page_params) {
const cursor = new URLSearchParams(page.next_page_params);
const next = await fetch(base + '/explorer/blocks?' + cursor);
console.log(await next.json());
}JSON-RPC · Ink Mainnet
Read chain data and simulate calls through Ink Explorer. Wallet signing and transaction broadcasting are not supported.
RPC requests use HTTP POST. Open the URL to inspect its supported methods and limits. Chain ID: 57073 (0xdef1).
curl --fail --silent 'https://inkexplorer.xyz/api/rpc' \
-H 'Content-Type: application/json' \
--data '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}'const response = await fetch("https://inkexplorer.xyz/api/rpc", {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]})
});
const result = await response.json();
if (!response.ok || result.error) throw new Error(result.error?.message || 'HTTP ' + response.status);
console.log(BigInt(result.result));Supported RPC methods (23)
eth_chainIdnet_versionweb3_clientVersioneth_blockNumbereth_syncingeth_gasPriceeth_maxPriorityFeePerGaseth_getBalanceeth_getCodeeth_getTransactionCounteth_getStorageAteth_getBlockByNumbereth_getBlockByHasheth_getBlockTransactionCountByNumbereth_getBlockTransactionCountByHasheth_getTransactionByHasheth_getTransactionReceipteth_getTransactionByBlockHashAndIndexeth_getTransactionByBlockNumberAndIndexeth_calleth_estimateGaseth_feeHistoryeth_getLogs
RPC limits: 20 calls per batch, 120 calls per minute per IP and 2000 blocks per log query.
Use the explorer WebSocket below for indexed live events. This RPC uses HTTP only.
Endpoints
GET/overviewNetwork overview
URL: https://inkexplorer.xyz/api/overview
JSON: { ... }
GET/explorer/blocksBlocks
URL: https://inkexplorer.xyz/api/explorer/blocks
Parameters: type=block | reorg
JSON: { items: [...], next_page_params: { ... } | null }
GET/explorer/blocks/{height-or-hash}block
URL: https://inkexplorer.xyz/api/explorer/blocks/{height-or-hash}
JSON: { ... }
GET/explorer/blocks/{height-or-hash}/transactionsTransactions
URL: https://inkexplorer.xyz/api/explorer/blocks/{height-or-hash}/transactions
JSON: { items: [...], next_page_params: { ... } | null }
GET/explorer/transactionsTransactions
URL: https://inkexplorer.xyz/api/explorer/transactions
JSON: { items: [...], next_page_params: { ... } | null }
GET/v1/transactionsFiltered transactions
URL: https://inkexplorer.xyz/api/v1/transactions
Parameters: transaction_types, methods, age_from, age_to, from_address_hashes_to_include, to_address_hashes_to_include, address_relation, status, cursor
JSON: { items: [...], next_page_params: { ... } | null }
GET/explorer/transactions/{hash}Transaction hash
URL: https://inkexplorer.xyz/api/explorer/transactions/{hash}
JSON: { ... }
GET/explorer/transactions/{hash}/token-transfersToken transfers
URL: https://inkexplorer.xyz/api/explorer/transactions/{hash}/token-transfers
JSON: { items: [...], next_page_params: { ... } | null }
GET/explorer/transactions/{hash}/internal-transactionsInternal transactions
URL: https://inkexplorer.xyz/api/explorer/transactions/{hash}/internal-transactions
JSON: { items: [...], next_page_params: { ... } | null }
GET/explorer/transactions/{hash}/logsEvent logs
URL: https://inkexplorer.xyz/api/explorer/transactions/{hash}/logs
JSON: { items: [...], next_page_params: { ... } | null }
GET/explorer/internal-transactionsInternal transactions
URL: https://inkexplorer.xyz/api/explorer/internal-transactions
JSON: { items: [...], next_page_params: { ... } | null }
GET/explorer/addressesTop accounts
URL: https://inkexplorer.xyz/api/explorer/addresses
JSON: { items: [...], next_page_params: { ... } | null }
GET/explorer/addresses/{address}Address
URL: https://inkexplorer.xyz/api/explorer/addresses/{address}
JSON: { ... }
GET/address-balance/{address}ETH balance
URL: https://inkexplorer.xyz/api/address-balance/{address}
JSON: { schema: 1, chainId, address, balance: "wei", block: { number, hash, timestamp }, observedAt, source: "local" }
GET/explorer/addresses/{address}/countersAddress counters
URL: https://inkexplorer.xyz/api/explorer/addresses/{address}/counters
JSON: { ... }
GET/explorer/addresses/{address}/transactionsAddress transactions
URL: https://inkexplorer.xyz/api/explorer/addresses/{address}/transactions
JSON: { items: [...], next_page_params: { ... } | null }
GET/explorer/addresses/{address}/token-transfersToken transfers
URL: https://inkexplorer.xyz/api/explorer/addresses/{address}/token-transfers
JSON: { items: [...], next_page_params: { ... } | null }
GET/explorer/addresses/{address}/internal-transactionsInternal transactions
URL: https://inkexplorer.xyz/api/explorer/addresses/{address}/internal-transactions
JSON: { items: [...], next_page_params: { ... } | null }
GET/explorer/tokensTokens
URL: https://inkexplorer.xyz/api/explorer/tokens
Parameters: type=ERC-20 | ERC-721 | ERC-1155
JSON: { items: [...], next_page_params: { ... } | null }
GET/explorer/tokens/{address}Token
URL: https://inkexplorer.xyz/api/explorer/tokens/{address}
JSON: { ... }
GET/explorer/tokens/{address}/transfersToken transfers
URL: https://inkexplorer.xyz/api/explorer/tokens/{address}/transfers
JSON: { items: [...], next_page_params: { ... } | null }
GET/explorer/tokens/{address}/holdersToken holders
URL: https://inkexplorer.xyz/api/explorer/tokens/{address}/holders
JSON: { items: [...], next_page_params: { ... } | null }
GET/explorer/tokens/{address}/instancesNFT instances
URL: https://inkexplorer.xyz/api/explorer/tokens/{address}/instances
JSON: { items: [...], next_page_params: { ... } | null }
GET/explorer/tokens/{address}/instances/{token-id}NFT instance
URL: https://inkexplorer.xyz/api/explorer/tokens/{address}/instances/{token-id}
JSON: { ... }
GET/explorer/tokens/{address}/instances/{token-id}/transfersNFT transfers
URL: https://inkexplorer.xyz/api/explorer/tokens/{address}/instances/{token-id}/transfers
JSON: { items: [...], next_page_params: { ... } | null }
GET/explorer/token-transfersToken transfers
URL: https://inkexplorer.xyz/api/explorer/token-transfers
Parameters: type=ERC-20 | ERC-721 | ERC-1155
JSON: { items: [...], next_page_params: { ... } | null }
GET/explorer/optimism/depositsL1 → L2 deposits
URL: https://inkexplorer.xyz/api/explorer/optimism/deposits
JSON: { items: [...], next_page_params: { ... } | null }
GET/explorer/optimism/withdrawalsL2 → L1 withdrawals
URL: https://inkexplorer.xyz/api/explorer/optimism/withdrawals
JSON: { items: [...], next_page_params: { ... } | null }
GET/explorer/optimism/batchesTransaction batches
URL: https://inkexplorer.xyz/api/explorer/optimism/batches
JSON: { items: [...], next_page_params: { ... } | null }
GET/explorer/optimism/batches/countTransaction batch count
URL: https://inkexplorer.xyz/api/explorer/optimism/batches/count
JSON: 12345
GET/explorer/optimism/batches/{number}Transaction batch
URL: https://inkexplorer.xyz/api/explorer/optimism/batches/{number}
JSON: { ... }
GET/explorer/optimism/gamesDispute games
URL: https://inkexplorer.xyz/api/explorer/optimism/games
JSON: { items: [...], next_page_params: { ... } | null }
GET/explorer/optimism/games/countDispute game count
URL: https://inkexplorer.xyz/api/explorer/optimism/games/count
JSON: 12345
GET/explorer/blocks/optimism-batch/{number}Batch blocks
URL: https://inkexplorer.xyz/api/explorer/blocks/optimism-batch/{number}
JSON: { items: [...], next_page_params: { ... } | null }
GET/explorer/transactions/optimism-batch/{number}Batch transactions
URL: https://inkexplorer.xyz/api/explorer/transactions/optimism-batch/{number}
JSON: { items: [...], next_page_params: { ... } | null }
GET/explorer/proxy/account-abstraction/operationsUser operations
URL: https://inkexplorer.xyz/api/explorer/proxy/account-abstraction/operations
JSON: { items: [...], next_page_params: { ... } | null }
GET/explorer/proxy/account-abstraction/operations/{hash}User operation
URL: https://inkexplorer.xyz/api/explorer/proxy/account-abstraction/operations/{hash}
JSON: { ... }
GET/explorer/smart-contractsVerified contracts
URL: https://inkexplorer.xyz/api/explorer/smart-contracts
JSON: { items: [...], next_page_params: { ... } | null }
GET/explorer/smart-contracts/{address}Smart contract
URL: https://inkexplorer.xyz/api/explorer/smart-contracts/{address}
JSON: { ... }
GET/explorer/statsNetwork statistics
URL: https://inkexplorer.xyz/api/explorer/stats
JSON: { ... }
GET/contract-info/poolsDEX pools
URL: https://inkexplorer.xyz/api/contract-info/pools
JSON: { items: [...], next_page_params: { ... } | null }
GET/contract-info/pools/{address-or-id}DEX pool
URL: https://inkexplorer.xyz/api/contract-info/pools/{address-or-id}
JSON: { ... }
GET/dappsDapps
URL: https://inkexplorer.xyz/api/dapps
JSON: [{ ... }, ...]
GET/stats/countersNetwork totals
URL: https://inkexplorer.xyz/api/stats/counters
JSON: { counters: [...] }
GET/stats/linesAll statistics
URL: https://inkexplorer.xyz/api/stats/lines
JSON: { sections: [...] }
GET/stats/lines/{metric}Chart
URL: https://inkexplorer.xyz/api/stats/lines/{metric}
Parameters: from=YYYY-MM-DD, to=YYYY-MM-DD, resolution=DAY | WEEK | MONTH | YEAR
JSON: { chart: [...] }
GET/searchSearch
URL: https://inkexplorer.xyz/api/search
Parameters: q
JSON: { items: [...], next_page_params: { ... } | null }
GET/live/configWebSocket configuration
URL: https://inkexplorer.xyz/api/live/config
JSON: { ... }
GET/live/statusWebSocket status
URL: https://inkexplorer.xyz/api/live/status
JSON: { ... }
GET/live/snapshotLatest blocks and transactions
URL: https://inkexplorer.xyz/api/live/snapshot
JSON: { ... }
GET/networkNetwork health
URL: https://inkexplorer.xyz/api/network
JSON: { ... }
Transaction filters
Filters match the parent transaction. Token transfers and internal calls are not separate rows in this endpoint.
curl --get --fail 'https://inkexplorer.xyz/api/v1/transactions' \
--data-urlencode 'transaction_types=CONTRACT_INTERACTION' \
--data-urlencode 'methods=0xa9059cbb' \
--data-urlencode 'age_from=2026-10-01T00:00:00Z'- transaction_types
- COIN_TRANSFER, CONTRACT_INTERACTION, CONTRACT_CREATION, ERC-20, ERC-721, ERC-1155
- methods
- Four-byte selector, for example 0xa9059cbb.
- from_address_hashes_to_include / to_address_hashes_to_include
- Full 0x address. Both filters use AND unless address_relation=or.
- age_from / age_to
- ISO 8601 · UTC
- status
- success | failed
- cursor
- Opaque cursor returned in next_page_params. Keep the same filters for every page.
Failed transactions cannot emit token transfer events. Choose Contract interaction to find failed token calls.
Pagination
Copy every next_page_params key into the next request. Null means the end of the list. Do not calculate block offsets or reuse a cursor with different filters.
Filtered pages may be short or empty while a next cursor remains. Continue with that cursor; results are deduplicated by parent hash.
ERC token searches resolve up to 25 parent transactions per page. Keep following the cursor to scan more source events.
WebSocket
const socket = new WebSocket("wss://inkexplorer.xyz/api/live");
socket.onmessage = ({data}) => {
const event = JSON.parse(data);
if (event.protocol !== 'ink-observer.live.v1') return;
if (event.network?.chainId !== 57073) return;
console.log(event.block, event.transactions, event.utilization, event.rolling24h);
};
// Reconnect with backoff after a close.
// The welcome frame is a fresh snapshot.Blocks arrive on node events. Transactions may appear before their receipts; only status ok confirms successful execution. Replace blocks by height and hash after a reorganization.
ink-explorer.delta.v1
Opt in using the WebSocket subprotocol. Reset frames replace local state; later frames merge blocks by height and transactions by hash. Remove transactions from replaced blocks and outside the reported window. Utilization covers 30 canonical blocks.
new WebSocket("wss://inkexplorer.xyz/api/live", 'ink-explorer.delta.v1')Limits and errors
Transaction search allows 4 concurrent queries and 60 queries per minute across this instance. A query scans at most 3 source pages. Other routes follow upstream limits. Retry 429 responses using Retry-After and exponential backoff.
- 200
- Success
- 202
- BLOCK_INDEXING · Retry-After: 3 · Accept: application/vnd.ink.indexing+json, application/json
TRANSACTION_INDEXING · Retry-After: 1 · Accept: application/vnd.ink.transaction-indexing+json, application/json - 400
- Invalid parameters or cursor.
- 404
- Unknown endpoint.
- 405
- Read-only endpoint. Use GET.
- 429
- Rate limit. Retry later.
- 502 / 503
- Source or transport unavailable. Retry with backoff.
Values and freshness
Wei amounts are decimal strings. Use BigInt and token decimals; do not convert raw balances to floating-point numbers. ETH uses 18 decimals. Chart units are declared by the metric catalogue.
Blocks and receipts come from the local node. Historical records and charts currently come from the Ink index. Check X-Ink-Data-Status and X-Ink-Data-Fetched-At when present; retained data is not a fresh observation.
The displayed block total comes from the local node. Indexer counters do not include their calculation time.
/live/snapshot → block.height + 1 · Canonical blocks from the local node, including genesis (block 0).
/live/snapshot → rolling24h.transactions · Transactions included in canonical blocks over the last 24 hours, including failed transactions and L1/system deposits. The window ends at the indicated block.
Indexer aggregates can lag the latest block even when the fetch timestamp is current.
The latest chart interval can be incomplete. UTC-day counters and trailing 24-hour counters describe different periods. Total fees include L2 execution and L1 data charges; inspect receipt fields for operator charges.