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 blockTransactions
GET /v1/explorer/transactions # List transactions
GET /v1/explorer/transactions/:hash # Get transaction
GET /v1/explorer/transactions/:hash/logs # Transaction logsAddresses
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 tokensTokens
GET /v1/explorer/tokens # List tokens
GET /v1/explorer/tokens/:address # Token details
GET /v1/explorer/tokens/:address/transfers # Token transfersSmart Contracts
GET /v1/explorer/smart-contracts/:address # Contract details + ABI
POST /v1/explorer/smart-contracts/:address/verification # Verify contractSearch
GET /v1/explorer/search?q=... # Search blocks, txs, addresses, tokensStats
GET /v1/explorer/stats # Network statistics
GET /v1/explorer/stats/charts/market # Market chart dataGraphQL
POST /graphqlAvailable at the GraphQL playground: GET /graphql
WebSocket
WS /v1/explorer/wsSubscribe 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