ETH Red de pruebas

API PARA DESARROLLADORES

OpenAPI

Inicio rápido

cURL
curl --fail --silent 'https://inkexplorer.xyz/testnet/api/explorer/blocks'
JavaScript
const base = "https://inkexplorer.xyz/testnet/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 Sepolia

Consulta la cadena y simula llamadas con Ink Explorer. No se admiten la firma ni la difusión de transacciones.

Las solicitudes RPC usan HTTP POST. Abre la dirección para consultar los métodos y límites disponibles. ID de cadena: 763373 (0xba5ed).

cURL
curl --fail --silent 'https://inkexplorer.xyz/testnet/api/rpc' \
  -H 'Content-Type: application/json' \
  --data '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}'
JavaScript
const response = await fetch("https://inkexplorer.xyz/testnet/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));
Métodos RPC disponibles (23)
  • eth_chainId
  • net_version
  • web3_clientVersion
  • eth_blockNumber
  • eth_syncing
  • eth_gasPrice
  • eth_maxPriorityFeePerGas
  • eth_getBalance
  • eth_getCode
  • eth_getTransactionCount
  • eth_getStorageAt
  • eth_getBlockByNumber
  • eth_getBlockByHash
  • eth_getBlockTransactionCountByNumber
  • eth_getBlockTransactionCountByHash
  • eth_getTransactionByHash
  • eth_getTransactionReceipt
  • eth_getTransactionByBlockHashAndIndex
  • eth_getTransactionByBlockNumberAndIndex
  • eth_call
  • eth_estimateGas
  • eth_feeHistory
  • eth_getLogs

Límites RPC: 20 llamadas por lote, 120 llamadas por minuto e IP y 2000 bloques por consulta de registros.

Usa el WebSocket del explorador indicado abajo para eventos indexados en directo. Este RPC solo usa HTTP.

Endpoints

GET/overviewResumen de la red

URL: https://inkexplorer.xyz/testnet/api/overview

JSON: { ... }

GET/explorer/blocksBloques

URL: https://inkexplorer.xyz/testnet/api/explorer/blocks

Parámetros: type=block | reorg

JSON: { items: [...], next_page_params: { ... } | null }

GET/explorer/blocks/{height-or-hash}bloque

URL: https://inkexplorer.xyz/testnet/api/explorer/blocks/{height-or-hash}

JSON: { ... }

GET/explorer/blocks/{height-or-hash}/transactionsTransacciones

URL: https://inkexplorer.xyz/testnet/api/explorer/blocks/{height-or-hash}/transactions

JSON: { items: [...], next_page_params: { ... } | null }

GET/explorer/transactionsTransacciones

URL: https://inkexplorer.xyz/testnet/api/explorer/transactions

JSON: { items: [...], next_page_params: { ... } | null }

GET/v1/transactionsTransacciones filtradas

URL: https://inkexplorer.xyz/testnet/api/v1/transactions

Parámetros: 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}Hash de transacción

URL: https://inkexplorer.xyz/testnet/api/explorer/transactions/{hash}

JSON: { ... }

GET/explorer/transactions/{hash}/token-transfersTransferencias de tokens

URL: https://inkexplorer.xyz/testnet/api/explorer/transactions/{hash}/token-transfers

JSON: { items: [...], next_page_params: { ... } | null }

GET/explorer/transactions/{hash}/internal-transactionsTransacciones internas

URL: https://inkexplorer.xyz/testnet/api/explorer/transactions/{hash}/internal-transactions

JSON: { items: [...], next_page_params: { ... } | null }

GET/explorer/transactions/{hash}/logsRegistros de eventos

URL: https://inkexplorer.xyz/testnet/api/explorer/transactions/{hash}/logs

JSON: { items: [...], next_page_params: { ... } | null }

GET/explorer/internal-transactionsTransacciones internas

URL: https://inkexplorer.xyz/testnet/api/explorer/internal-transactions

JSON: { items: [...], next_page_params: { ... } | null }

GET/explorer/addressesCuentas principales

URL: https://inkexplorer.xyz/testnet/api/explorer/addresses

JSON: { items: [...], next_page_params: { ... } | null }

GET/explorer/addresses/{address}Dirección

URL: https://inkexplorer.xyz/testnet/api/explorer/addresses/{address}

JSON: { ... }

GET/address-balance/{address}Saldo ETH

URL: https://inkexplorer.xyz/testnet/api/address-balance/{address}

JSON: { schema: 1, chainId, address, balance: "wei", block: { number, hash, timestamp }, observedAt, source: "local" }

GET/explorer/addresses/{address}/countersContadores de dirección

URL: https://inkexplorer.xyz/testnet/api/explorer/addresses/{address}/counters

JSON: { ... }

GET/explorer/addresses/{address}/transactionsTransacciones de la dirección

URL: https://inkexplorer.xyz/testnet/api/explorer/addresses/{address}/transactions

JSON: { items: [...], next_page_params: { ... } | null }

GET/explorer/addresses/{address}/token-transfersTransferencias de tokens

URL: https://inkexplorer.xyz/testnet/api/explorer/addresses/{address}/token-transfers

JSON: { items: [...], next_page_params: { ... } | null }

GET/explorer/addresses/{address}/internal-transactionsTransacciones internas

URL: https://inkexplorer.xyz/testnet/api/explorer/addresses/{address}/internal-transactions

JSON: { items: [...], next_page_params: { ... } | null }

GET/explorer/tokensTokens

URL: https://inkexplorer.xyz/testnet/api/explorer/tokens

Parámetros: type=ERC-20 | ERC-721 | ERC-1155

JSON: { items: [...], next_page_params: { ... } | null }

GET/explorer/tokens/{address}Token

URL: https://inkexplorer.xyz/testnet/api/explorer/tokens/{address}

JSON: { ... }

GET/explorer/tokens/{address}/transfersTransferencias de tokens

URL: https://inkexplorer.xyz/testnet/api/explorer/tokens/{address}/transfers

JSON: { items: [...], next_page_params: { ... } | null }

GET/explorer/tokens/{address}/holdersTitulares del token

URL: https://inkexplorer.xyz/testnet/api/explorer/tokens/{address}/holders

JSON: { items: [...], next_page_params: { ... } | null }

GET/explorer/tokens/{address}/instancesInstancias NFT

URL: https://inkexplorer.xyz/testnet/api/explorer/tokens/{address}/instances

JSON: { items: [...], next_page_params: { ... } | null }

GET/explorer/tokens/{address}/instances/{token-id}Instancia NFT

URL: https://inkexplorer.xyz/testnet/api/explorer/tokens/{address}/instances/{token-id}

JSON: { ... }

GET/explorer/tokens/{address}/instances/{token-id}/transfersTransferencias NFT

URL: https://inkexplorer.xyz/testnet/api/explorer/tokens/{address}/instances/{token-id}/transfers

JSON: { items: [...], next_page_params: { ... } | null }

GET/explorer/token-transfersTransferencias de tokens

URL: https://inkexplorer.xyz/testnet/api/explorer/token-transfers

Parámetros: type=ERC-20 | ERC-721 | ERC-1155

JSON: { items: [...], next_page_params: { ... } | null }

GET/explorer/optimism/depositsDepósitos L1 → L2

URL: https://inkexplorer.xyz/testnet/api/explorer/optimism/deposits

JSON: { items: [...], next_page_params: { ... } | null }

GET/explorer/optimism/withdrawalsRetiros L2 → L1

URL: https://inkexplorer.xyz/testnet/api/explorer/optimism/withdrawals

JSON: { items: [...], next_page_params: { ... } | null }

GET/explorer/optimism/batchesLotes de transacciones

URL: https://inkexplorer.xyz/testnet/api/explorer/optimism/batches

JSON: { items: [...], next_page_params: { ... } | null }

GET/explorer/optimism/batches/countNúmero de lotes de transacciones

URL: https://inkexplorer.xyz/testnet/api/explorer/optimism/batches/count

JSON: 12345

GET/explorer/optimism/batches/{number}Lote de transacciones

URL: https://inkexplorer.xyz/testnet/api/explorer/optimism/batches/{number}

JSON: { ... }

GET/explorer/optimism/gamesDisputas

URL: https://inkexplorer.xyz/testnet/api/explorer/optimism/games

JSON: { items: [...], next_page_params: { ... } | null }

GET/explorer/optimism/games/countNúmero de disputas

URL: https://inkexplorer.xyz/testnet/api/explorer/optimism/games/count

JSON: 12345

GET/explorer/blocks/optimism-batch/{number}Bloques del lote

URL: https://inkexplorer.xyz/testnet/api/explorer/blocks/optimism-batch/{number}

JSON: { items: [...], next_page_params: { ... } | null }

GET/explorer/transactions/optimism-batch/{number}Transacciones del lote

URL: https://inkexplorer.xyz/testnet/api/explorer/transactions/optimism-batch/{number}

JSON: { items: [...], next_page_params: { ... } | null }

GET/explorer/proxy/account-abstraction/operationsOperaciones de usuario

URL: https://inkexplorer.xyz/testnet/api/explorer/proxy/account-abstraction/operations

JSON: { items: [...], next_page_params: { ... } | null }

GET/explorer/proxy/account-abstraction/operations/{hash}Operación de usuario

URL: https://inkexplorer.xyz/testnet/api/explorer/proxy/account-abstraction/operations/{hash}

JSON: { ... }

GET/explorer/smart-contractsContratos verificados

URL: https://inkexplorer.xyz/testnet/api/explorer/smart-contracts

JSON: { items: [...], next_page_params: { ... } | null }

GET/explorer/smart-contracts/{address}Contrato inteligente

URL: https://inkexplorer.xyz/testnet/api/explorer/smart-contracts/{address}

JSON: { ... }

GET/explorer/statsEstadísticas de la red

URL: https://inkexplorer.xyz/testnet/api/explorer/stats

JSON: { ... }

GET/contract-info/poolsPools DEX

URL: https://inkexplorer.xyz/testnet/api/contract-info/pools

JSON: { items: [...], next_page_params: { ... } | null }

GET/contract-info/pools/{address-or-id}Pool DEX

URL: https://inkexplorer.xyz/testnet/api/contract-info/pools/{address-or-id}

JSON: { ... }

GET/dappsAplicaciones descentralizadas

URL: https://inkexplorer.xyz/testnet/api/dapps

JSON: [{ ... }, ...]

GET/stats/countersTotales de la red

URL: https://inkexplorer.xyz/testnet/api/stats/counters

JSON: { counters: [...] }

GET/stats/linesTodas las estadísticas

URL: https://inkexplorer.xyz/testnet/api/stats/lines

JSON: { sections: [...] }

GET/stats/lines/{metric}Gráfico

URL: https://inkexplorer.xyz/testnet/api/stats/lines/{metric}

Parámetros: from=YYYY-MM-DD, to=YYYY-MM-DD, resolution=DAY | WEEK | MONTH | YEAR

JSON: { chart: [...] }

GET/searchBuscar

URL: https://inkexplorer.xyz/testnet/api/search

Parámetros: q

JSON: { items: [...], next_page_params: { ... } | null }

GET/live/configConfiguración de WebSocket

URL: https://inkexplorer.xyz/testnet/api/live/config

JSON: { ... }

GET/live/statusEstado de WebSocket

URL: https://inkexplorer.xyz/testnet/api/live/status

JSON: { ... }

GET/live/snapshotÚltimos bloques y transacciones

URL: https://inkexplorer.xyz/testnet/api/live/snapshot

JSON: { ... }

GET/networkEstado de la red

URL: https://inkexplorer.xyz/testnet/api/network

JSON: { ... }

Filtros de transacciones

Los filtros se aplican a la transacción principal. Sus transferencias de tokens y llamadas internas no crean filas adicionales.

cURL
curl --get --fail 'https://inkexplorer.xyz/testnet/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
Selector de cuatro bytes, como 0xa9059cbb.
from_address_hashes_to_include / to_address_hashes_to_include
Dirección 0x completa. Ambos filtros usan AND salvo con address_relation=or.
age_from / age_to
ISO 8601 · UTC
status
success | failed
cursor
Cursor opaco de next_page_params. Mantén los mismos filtros en cada página.

Las transacciones fallidas no emiten eventos de transferencia de tokens. Elige Interacción con contrato para ver las llamadas fallidas.

Paginación

Copia todas las claves de next_page_params en la siguiente petición. null termina la lista. No calcules saltos de bloques ni reutilices cursores con otros filtros.

Una página filtrada puede ser corta o vacía y tener cursor siguiente. Continúa con él; se eliminan duplicados por hash principal.

Las búsquedas de tokens ERC verifican hasta 25 transacciones principales por página. Sigue el cursor para explorar más eventos.

WebSocket

JavaScript
const socket = new WebSocket("wss://inkexplorer.xyz/testnet/api/live");
socket.onmessage = ({data}) => {
  const event = JSON.parse(data);
  if (event.protocol !== 'ink-observer.live.v1') return;
  if (event.network?.chainId !== 763373) return;
  console.log(event.block, event.transactions, event.utilization, event.rolling24h);
};
// Reconnect with backoff after a close.
// The welcome frame is a fresh snapshot.

Los bloques llegan por eventos del nodo. Una transacción puede preceder al recibo; solo status ok confirma el éxito. Tras una reorganización, reemplaza bloques por altura y hash.

ink-explorer.delta.v1

Activa el subprotocolo WebSocket. reset reemplaza el estado; después combina bloques por altura y transacciones por hash. Elimina las de bloques reemplazados o fuera de ventana. La utilización cubre 30 bloques canónicos.

JavaScript
new WebSocket("wss://inkexplorer.xyz/testnet/api/live", 'ink-explorer.delta.v1')

Límites y errores

La búsqueda comparte un límite de 4 consultas simultáneas y 60 por minuto. Cada consulta recorre hasta 3 páginas fuente. Otras rutas siguen los límites de su fuente. Ante 429, respeta Retry-After y aumenta el intervalo exponencialmente.

200
Correcto
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
Parámetros o cursor inválidos.
404
Endpoint desconocido.
405
Solo lectura. Usa GET.
429
Límite alcanzado. Reintenta más tarde.
502 / 503
Fuente o conexión no disponible. Espacia los reintentos.

Valores y actualización

Los importes en wei son cadenas decimales. Usa BigInt y los decimales del token para evitar redondeos flotantes. ETH usa 18 decimales. El catálogo declara las unidades de los gráficos.

Los bloques y recibos vienen del nodo local; el historial y los gráficos, del índice Ink. Comprueba X-Ink-Data-Status y X-Ink-Data-Fetched-At si están presentes: los datos retenidos no son observaciones nuevas.

El total de bloques mostrado procede del nodo local. Los contadores del indexador no incluyen su hora de cálculo.

/live/snapshot → block.height + 1 · Bloques canónicos del nodo local, incluido el génesis (bloque 0).

/live/snapshot → rolling24h.transactions · Transacciones incluidas en bloques canónicos durante las últimas 24 horas, incluidas las fallidas y los depósitos L1/del sistema. El período termina en el bloque indicado.

Los agregados del indexador pueden ir por detrás del último bloque aunque la fecha de obtención sea reciente.

El último intervalo puede estar incompleto. El día UTC y las últimas 24 horas son períodos distintos. La comisión total incluye ejecución L2 y datos L1; consulta el recibo para cargos del operador.