Post
Topic
Board Development & Technical Discussion
Re: Need idea for FASTER Balance & transaction update
by
ETFbitcoin
on 29/04/2020, 12:01:01 UTC
If you're planning to have more than a handfull of active users, i'd defenately start by running your own bitcoind instead of using blockcypher's api.

When configuring the bitcoin daemon, use notifyers as a hook to your update script, that way your database will stay up-to-date.

I'd probably use a combination of -walletnotify and -blocknotify, and maybe poll the mempool from within the user's account overview page for incoming, unconfirmed transactions.
Make sure you either have a watch-only wallet, or make sure your hotwallet is properly locked.

You also need to add user's address to Bitcoin Core watch-only wallet if you use watch-only wallet feature.

Separating Bitcoin Core and your database is recommended to prevent either service hogging all resource.