Chronik API Reference
HTTP Endpoints
GET /block/:hash_or_height # Get block
GET /tx/:txid # Get transaction
POST /broadcast-tx # Broadcast transaction
GET /script/:type/:payload/utxos # UTXOs
GET /script/:type/:payload/history # History
GET /token/:txid # Token info
WebSocket Message Types
BLK_CONNECTED # Block connected
BLK_DISCONNECTED # Block disconnected
BLK_FINALIZED # Block Avalanche finalized
TX_ADDED_TO_MEMPOOL # Tx entered mempool
TX_REMOVED_FROM_MEMPOOL # Tx removed from mempool
TX_CONFIRMED # Tx confirmed
TX_FINALIZED # Tx Avalanche finalized
Token Types
// SLP
SLP_TOKEN_TYPE_FUNGIBLE = 1
SLP_TOKEN_TYPE_NFT1_GROUP = 0x81
SLP_TOKEN_TYPE_NFT1_CHILD = 0x41
// ALP
ALP_TOKEN_TYPE_STANDARD = 0
Recommended Nodes
https://chronik.e.cash
http://localhost:8331 (local Bitcoin ABC)