Lux Docs

API Reference

REST, GraphQL, and WebSocket APIs

REST API

Base URL: https://api-explore.lux.network/v1/explorer

Blocks

GET /v1/explorer/blocks                    # List blocks
GET /v1/explorer/blocks/:number_or_hash    # Get block

Transactions

GET /v1/explorer/transactions              # List transactions
GET /v1/explorer/transactions/:hash        # Get transaction
GET /v1/explorer/transactions/:hash/logs   # Transaction logs

Addresses

GET /v1/explorer/addresses/:hash                  # Address details
GET /v1/explorer/addresses/:hash/transactions     # Address transactions
GET /v1/explorer/addresses/:hash/token-transfers  # Token transfers
GET /v1/explorer/addresses/:hash/tokens           # Held tokens

Tokens

GET /v1/explorer/tokens                    # List tokens
GET /v1/explorer/tokens/:address           # Token details
GET /v1/explorer/tokens/:address/transfers # Token transfers

Smart Contracts

GET /v1/explorer/smart-contracts/:address  # Contract details + ABI
POST /v1/explorer/smart-contracts/:address/verification  # Verify contract
GET /v1/explorer/search?q=...             # Search blocks, txs, addresses, tokens

Stats

GET /v1/explorer/stats                    # Network statistics
GET /v1/explorer/stats/charts/market      # Market chart data

GraphQL

POST /graphql

Available at the GraphQL playground: GET /graphql

WebSocket

WS /v1/explorer/ws

Subscribe to:

  • New blocks
  • New transactions
  • Address activity
  • Token transfers

Etherscan-Compatible RPC

POST /api?module=account&action=txlist&address=0x...
POST /api?module=contract&action=getabi&address=0x...

Health

GET /health
GET /metrics

On this page