unisat-dev-docs

Alkanes Balance and UTXO

This document describes all endpoints and details related to Alkanes token balance and UTXO management in UniSat OpenAPI.


1. Alkanes Model Overview

Alkanes uses a UTXO-based model: assets are attached directly to UTXOs. Alkanes assets are generally divided into multiple types, most commonly token and NFT. The Alkanes indexer does not support mempool (unconfirmed transaction) recognition. This means:

Warning: Always be cautious when spending UTXOs that may contain Alkanes assets, especially if they are unconfirmed. The indexer cannot detect Alkanes in mempool transactions, so asset loss may occur if not handled properly.


2. Alkanes Balance & UTXO Endpoints


3. Usage Scenarios and Special Cases


4. FAQ

Q: How do I get all my Alkanes balances? A: Use /v1/indexer/address/{address}/alkanes/{alkaneid}/utxo to get UTXO distribution for a specific Alkane.

Q: What should I be careful about when spending UTXOs? A: Never spend unconfirmed UTXOs as BTC if they may contain Alkanes assets. The indexer cannot detect Alkanes in mempool, and you risk sending your Alkanes to someone else by mistake.

Q: How do I get pure BTC UTXOs (excluding Alkanes assets)? A: Use /v1/indexer/address/{address}/available-utxo-data to get UTXOs that do not contain Alkanes assets. This endpoint is designed to help you safely select UTXOs for BTC transactions without risking accidental transfer of Alkanes.


5. References


6. Indexer Height and Data Lag