Raw chain-state lookup
Explorer API
Onchain Lookup
Raw chain-state lookup for a transaction hash on EVM or UTXO networks
GET
Raw chain-state lookup
Endpoint
Request
| Path parameter | Type | Required | Description |
|---|---|---|---|
chain | string | Yes | Chain code (case-insensitive) — see supported list below |
hash | string | Yes | Transaction hash |
Supported Chains
EVM (via DRPC)
ETH, ARB / ARBITRUM, BASE, OP / OPTIMISM, BSC / BNB / BNBCHAIN, AVAX / AVAX_CCHAIN, POLYGON / MATIC, FTM, LINEA, SCROLL, BLAST, ZKSYNC, SONIC, HYPERLIQUID
UTXO (via mempool.space)
BTC, LTC, DOGE, BCH
Response
EVM Chains
| Field | Description |
|---|---|
type | "evm" |
block_number | Block height |
status | "success" (0x1), "failed" (0x0), or null if pending |
confirmations | latestBlock - blockNumber |
gas_used | Gas units consumed |
effective_gas_price_gwei | Effective gas price formatted as a 4-decimal string (gwei) |
nonce | Sender nonce |
log_count | Number of event logs |
input_data | Raw transaction calldata hex |
UTXO Chains
| Field | Description |
|---|---|
type | "utxo" |
block_height | Block height when confirmed |
confirmed_at | Block time as ISO-8601 |
fee_sat | Total fee in satoshis |
size | Transaction size in bytes |
vsize | Virtual size (witness-discounted) in bytes |
Unknown Chain
If the chain is not in either supported set:Errors
| Status | Description |
|---|---|
400 | Missing hash path parameter |
500 | Upstream RPC/explorer call failed |
Examples
Notes
- EVM lookups return partial data if either
eth_getTransactionByHashoreth_getTransactionReceiptfails — fields will benullrather than the request erroring out. - This endpoint is intentionally chain-agnostic at the response level (
typediscriminates EVM vs UTXO). Future chains will use newtypevalues. - For multi-protocol swap status (the cross-chain settlement view), use
/leokit/statusinstead.