stacks-network / stacks-blockchain-docker

Stacks-blockchain with API using docker compose
GNU General Public License v3.0
27 stars 37 forks source link

Check BTC balance #22

Closed iamgenchi closed 3 years ago

iamgenchi commented 3 years ago

Hi Team,

I understand by default, the bitcoin node is "bitcoind.blockstack.org".

How can one check the BTC balance on the mocknet for a particular account?

wileyj commented 3 years ago

For mocknet, this is no longer the case - you're welcome to use a customized miner config to use any bitcoin config node you want though.

https://github.com/blockstack/stacks-local-dev/blob/mocknet/stacks-node-miner/Config.toml.template#L9-L12

Generically, to check a wallet address it's easier to use a public service if you have an address on btc mainnet or testnet. i.e.. https://www.blockchain.com/btc/address/1Eu4YpsG7qZciim44pP36GwxToqxaoq9xb

For regtest, you'd have to do a little more work with the bitcoin-cli to get the data you're looking for.

iamgenchi commented 3 years ago

Thank you @wileyj

For mocknet, this is no longer the case

That’s interesting.. so, by default, what Bitcoin running instance is being used with the mocknet? Is it a local instance?