UTXO events
Real-time event stream for UTXO networks. Subscribe by address and receive new blocks and address activity as soon as each block is finalized.
wss://api.chaingate.dev/utxo/{network}/events?api_key=YOUR_API_KEY
Supported networks
| Network | {network} |
|---|---|
| Bitcoin | bitcoin |
| Bitcoin Cash | bitcoincash |
| Litecoin | litecoin |
| Dogecoin | dogecoin |
| Bitcoin Testnet | bitcointestnet |
Channels
| Channel | Address? | Flags | What you receive |
|---|---|---|---|
blocks | No | full | New block summaries — or full blocks with full: true. |
balance | Yes | pending | Confirmed balance — or the pending delta with pending: true. |
history | Yes | pending | Confirmed transaction activity — or pending txs with pending: true. |
mempool | No | — | Every pending transaction, as it is seen. (Optional.) |
Subscribe
Pass a normal address for the network (e.g. a bc1q... Bitcoin address):
{ "action": "subscribe", "channel": "balance", "address": "bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4" }
{ "action": "subscribe", "channel": "blocks" }
Amounts
All amounts in UTXO events are integers in the smallest unit (satoshis for Bitcoin, litoshis for Litecoin, and so on). Divide by 100,000,000 to get whole coins.