# Explorer

On-chain block and transaction queries. Equivalent to a block explorer for the Lynx chain.

## Get Block

> Full block details including all transactions in the block.

```json
{"openapi":"3.0.3","info":{"title":"Lynx DEX API","version":"1.5.0"},"tags":[{"name":"Explorer","description":"On-chain block and transaction queries. Equivalent to a block explorer for the Lynx chain.\n"}],"servers":[{"url":"http://10.34.8.77:8481/v1","description":"Production"}],"paths":{"/explorer/block/{height}":{"get":{"tags":["Explorer"],"summary":"Get Block","operationId":"getBlock","description":"Full block details including all transactions in the block.","parameters":[{"name":"height","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Block details","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ResponseEnvelope"},{"type":"object","properties":{"data":{"type":"object","properties":{"height":{"type":"integer","format":"int64"},"block_hash":{"type":"string"},"block_time":{"type":"integer","format":"int64"},"parent_hash":{"type":"string"},"state_root":{"type":"string"},"proposer":{"type":"string"},"num_txs":{"type":"integer"},"txs":{"type":"array","items":{"$ref":"#/components/schemas/ExplorerTx"}}}}}}]}}}}}}}},"components":{"schemas":{"ResponseEnvelope":{"type":"object","description":"Standard response envelope shared by every endpoint.","required":["code","msg","data"],"properties":{"code":{"type":"string","description":"`\"0\"` for success. Non-zero indicates an error code — see [Error Codes](/reference/error-codes)."},"msg":{"type":"string","description":"Empty on success; human-readable error description on failure."},"data":{"description":"Endpoint-specific payload on success; `null` on failure.","nullable":true},"trace_code":{"type":"string","description":"Backend trace identifier. Empty on success; populated on failure for support diagnostics."}}},"ExplorerTx":{"type":"object","properties":{"tx_hash":{"type":"string","description":"EIP-712 signing hash."},"address":{"type":"string"},"action_type":{"type":"string"},"action":{"type":"object","description":"Original action parameters."},"seq_no":{"type":"integer","description":"Within-block sequence number."},"time":{"type":"integer","format":"int64"},"error":{"type":"string","nullable":true,"description":"`null` = success."},"block_height":{"type":"integer","format":"int64","description":"Present when fetched via /tx or /address/txs."}}}}}}
```

## Get Transaction

> Single transaction by hash. Includes \`block\_height\`.

```json
{"openapi":"3.0.3","info":{"title":"Lynx DEX API","version":"1.5.0"},"tags":[{"name":"Explorer","description":"On-chain block and transaction queries. Equivalent to a block explorer for the Lynx chain.\n"}],"servers":[{"url":"http://10.34.8.77:8481/v1","description":"Production"}],"paths":{"/explorer/tx/{tx_hash}":{"get":{"tags":["Explorer"],"summary":"Get Transaction","operationId":"getTransaction","description":"Single transaction by hash. Includes `block_height`.","parameters":[{"name":"tx_hash","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Transaction details","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ResponseEnvelope"},{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ExplorerTx"}}}]}}}}}}}},"components":{"schemas":{"ResponseEnvelope":{"type":"object","description":"Standard response envelope shared by every endpoint.","required":["code","msg","data"],"properties":{"code":{"type":"string","description":"`\"0\"` for success. Non-zero indicates an error code — see [Error Codes](/reference/error-codes)."},"msg":{"type":"string","description":"Empty on success; human-readable error description on failure."},"data":{"description":"Endpoint-specific payload on success; `null` on failure.","nullable":true},"trace_code":{"type":"string","description":"Backend trace identifier. Empty on success; populated on failure for support diagnostics."}}},"ExplorerTx":{"type":"object","properties":{"tx_hash":{"type":"string","description":"EIP-712 signing hash."},"address":{"type":"string"},"action_type":{"type":"string"},"action":{"type":"object","description":"Original action parameters."},"seq_no":{"type":"integer","description":"Within-block sequence number."},"time":{"type":"integer","format":"int64"},"error":{"type":"string","nullable":true,"description":"`null` = success."},"block_height":{"type":"integer","format":"int64","description":"Present when fetched via /tx or /address/txs."}}}}}}
```

## Get Address Transactions

> Up to 500 most-recent transactions for an address (no pagination beyond the cap).

```json
{"openapi":"3.0.3","info":{"title":"Lynx DEX API","version":"1.5.0"},"tags":[{"name":"Explorer","description":"On-chain block and transaction queries. Equivalent to a block explorer for the Lynx chain.\n"}],"servers":[{"url":"http://10.34.8.77:8481/v1","description":"Production"}],"paths":{"/explorer/address/{address}/txs":{"get":{"tags":["Explorer"],"summary":"Get Address Transactions","operationId":"getAddressTransactions","description":"Up to 500 most-recent transactions for an address (no pagination beyond the cap).","parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"}}],"responses":{"200":{"description":"Address transactions (time desc, ≤ 500)","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ResponseEnvelope"},{"type":"object","properties":{"data":{"type":"object","properties":{"list":{"type":"array","items":{"$ref":"#/components/schemas/ExplorerTx"}}}}}}]}}}}}}}},"components":{"schemas":{"ResponseEnvelope":{"type":"object","description":"Standard response envelope shared by every endpoint.","required":["code","msg","data"],"properties":{"code":{"type":"string","description":"`\"0\"` for success. Non-zero indicates an error code — see [Error Codes](/reference/error-codes)."},"msg":{"type":"string","description":"Empty on success; human-readable error description on failure."},"data":{"description":"Endpoint-specific payload on success; `null` on failure.","nullable":true},"trace_code":{"type":"string","description":"Backend trace identifier. Empty on success; populated on failure for support diagnostics."}}},"ExplorerTx":{"type":"object","properties":{"tx_hash":{"type":"string","description":"EIP-712 signing hash."},"address":{"type":"string"},"action_type":{"type":"string"},"action":{"type":"object","description":"Original action parameters."},"seq_no":{"type":"integer","description":"Within-block sequence number."},"time":{"type":"integer","format":"int64"},"error":{"type":"string","nullable":true,"description":"`null` = success."},"block_height":{"type":"integer","format":"int64","description":"Present when fetched via /tx or /address/txs."}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.lynxtrade.world/rest-api/explorer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
