BitBoxSwiss / bitbox-api-rs

BitBox02 client library for Rust and TypeScript
Apache License 2.0
6 stars 12 forks source link

Blockchain data #72

Open mwitte opened 5 months ago

mwitte commented 5 months ago

I am currently developing an app in which I am integrating BitBox. I am wondering how I can best access the Bitcoin balances and transaction details on the blockchain of my users in order to display the data to them. What options are there and which would you recommend?

benma commented 5 months ago

Can you elaborate more on what you are trying to build?

This package can help you interact with the BitBox02 and invoke API calls, such as getting an xpub from the device, displaying receive addresses, signing transactions, etc.

This package is not offer generic host wallet functionality such as querying balances and transactions. We don't have any particular recommendations for how to do things like these. The BitBoxApp for example connects to Electrum servers and fetches address details from there, which involves client side address generation and scanning. Blockbook is another server software with an API, which is easier to integrate, as it can be queried with xpubs instead of with individual addresses, which should be simpler to use. There might also be Bitcoin API services out there that run such servers with an API that you could use, but I am not familiar with any of them.