Using the hBK Demo App
📜 TL;DR:
The Hemi Bitcoin Kit (hBK) Demo App enables seamless interaction with Bitcoin data in an Ethereum-compatible environment.
Key features include:
Query Bitcoin address balances.
Retrieve the latest block header or specific block headers by height.
List UTXOs (Unspent Transaction Outputs) for a Bitcoin address.
Developers can easily integrate Bitcoin data into dApps without external services, simplifying Bitcoin-aware application development.
🌐 Overview
The Hemi Bitcoin Kit (hBK) Demo App is a tool designed for developers to interact with Bitcoin blockchain data directly from an Ethereum-compatible environment.
This demo app provides a user-friendly interface for querying Bitcoin information.
By abstracting the complexities of interacting with Bitcoin data, the app allows developers to seamlessly retrieve and use Bitcoin blockchain data in their dApps without needing external services.
This makes it an effective resource for experimenting with Bitcoin-aware applications and understanding hBK’s capabilities within the Hemi ecosystem.
🏁 Prerequisites
To follow along, you’ll need:
Nothing!
1. Get Address Balance
Retrieves the current balance (in satoshis) of a specified Bitcoin address.
Verifying our Output
Navigate to https://blockstream.info and input the Bitcoin address to confirm the above output.
2. Get Latest Block Header
Returns the latest Bitcoin block header containing metadata like hash, height, and timestamp.
Verifying our Output
Navigate to https://blockstream.info and input the Block header to confirm the above output.
3. Get Block Header by Height
Fetches the block header for a specific block height.
Verifying our Output
Navigate to https://blockstream.info and input the Block header height to confirm the above output.
4. Get Transaction Details
Fetches the details of a Bitcoin transaction using its transaction ID, including all of its inputs and outputs.
Verifying our Output
Navigate to https://blockstream.info and input the transaction ID to confirm the above output.
5. Get Transaction Confirmations
Retrieves the number of confirmations for a specific transaction based on its transaction ID.
Verifying our Output
Navigate to https://blockstream.info and input the transaction ID to confirm the above output.
6. List Address UTXOs
Returns the UTXOs (Unspent Transaction Outputs) of a Bitcoin address, with pagination support.
Verifying our Output
Navigate to https://blockstream.info and input the Bitcoin address to confirm the above output.
Last updated