Closed LeetGod closed 5 years ago
copy and paste your code here.
Dim net As Network = Network.Main
Dim transaction = New Transaction()
Dim bitcoinPrivateKey = New BitcoinSecret(PrivateKey)
Dim fromAddress = bitcoinPrivateKey.GetAddress().ToString()
Dim addressBalance As Decimal = 0
Dim addressBalanceConfirmed As Decimal = 0
Dim ConfirmedBalance As Decimal = MssGetBalance(fromAddress, True, addressBalance, addressBalanceConfirmed)
Dim client As QBitNinjaClient = New QBitNinjaClient(net)
Dim balance = client.GetBalance(New BitcoinPubKeyAddress(fromAddress), True).Result
The error is on:
Dim balance = client.GetBalance(New BitcoinPubKeyAddress(fromAddress), True).Result
BitcoinAddress.Create(fromAddress, Network.Main)
Thank you! It works now
Also, I'm using the old way to build a transaction.
But Dim transaction = New Transaction.Create(net) isn't working for me
It says Transaction.Create(net);
I can easily check the balance of a regular single key bitcoin address, but how for multi-signature wallets?
Such as: 3P3QsMVK89JBNqZQv5zMAKG8FK3kJM4rjt
I get the error:
Invalid BitcoinPubKeyAddress