Closed Rob1Ham closed 1 year ago
This is a gap in our documentation for doing on-chain transactions with bdk-cli
. The default electrum server URL points to Blockstream's testnet endpoint (ssl://electrum.blockstream.info:60002). To get your on-chain wallet balance you need to use the Blockstream (ssl://electrum.blockstream.info:60002) or any other mainnet electrum url:
$ bdk-cli --network bitcoin wallet -w quicktest -d $TEST_DESCRIPTOR -s ssl://electrum.blockstream.info:50002 sync
{}
$ bdk-cli --network bitcoin wallet -w quicktest -d $TEST_DESCRIPTOR -s ssl://electrum.blockstream.info:50002 get_balance
{
"satoshi": 28392
}
Describe the bug
BDK-CLI is not returning an accurate balance for a main net wallet.
To Reproduce
Using BDK-CLI for some testing on mainnet, I ran the following commands:
It can be seen though that address
bc1qhgvzuuetc6dac2veqad8cjdzcz8dkgywn7dhetkp5cs3y58qugks2x0h9e
has coins here.Expected behavior
Given the current balanace of the utxo, i'd expect an output of:
Build environment