Bitcoin Forum
May 13, 2024, 01:06:12 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Different balance in electrum and blockchain???  (Read 104 times)
RoxxR (OP)
Full Member
***
Offline Offline

Activity: 208
Merit: 148


View Profile
April 28, 2021, 06:44:45 PM
 #1

When checking the balance of 1HLoD9E4SDFFPDiYfNYnkBLQ85Y51J3Zb1 in Electrum console

I get "0.0159762"

Code:
getaddressbalance('1HLoD9E4SDFFPDiYfNYnkBLQ85Y51J3Zb1') 

Whereas blockchain.com shows 50.0159762

https://www.blockchain.com/btc/address/1HLoD9E4SDFFPDiYfNYnkBLQ85Y51J3Zb1


Who is correct?
Even if you use Bitcoin through Tor, the way transactions are handled by the network makes anonymity difficult to achieve. Do not expect your transactions to be anonymous unless you really know what you're doing.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
BitcoinGirl.Club
Legendary
*
Offline Offline

Activity: 2772
Merit: 2713


Farewell LEO: o_e_l_e_o


View Profile WWW
April 28, 2021, 06:51:27 PM
Last edit: May 14, 2023, 04:31:52 PM by BitcoinGirl.Club
 #2

The address has 50+ btc which means you are getting some error information from your Electrum. Maybe you did not set it up well.

Update:
Strange and I see what you mean. I just added this address and figured out that the Coinbase transaction has not added to it which had50BTC reward.



We will see what others have to tell here.

▄▄███████▄▄
▄██████████████▄
▄██████████████████▄
▄████▀▀▀▀███▀▀▀▀█████▄
▄█████████████▄█▀████▄
███████████▄███████████
██████████▄█▀███████████
██████████▀████████████
▀█████▄█▀█████████████▀
▀████▄▄▄▄███▄▄▄▄████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀
.
 MΞTAWIN  THE FIRST WEB3 CASINO   
.
.. PLAY NOW ..
BlackHatCoiner
Legendary
*
Online Online

Activity: 1512
Merit: 7364


Farewell, Leo


View Profile
April 28, 2021, 06:57:14 PM
Merited by BitcoinGirl.Club (1), hosseinimr93 (1), Charles-Tim (1)
 #3

Yes, that's because electrum doesn't display P2PK transactions and Hal's rewarded bitcoins were paid to his public key. For an unknown reason, electrum looks only for the transactions that are related through through the derived script hash from the address. Pay-to-public-key transactions aren't related to that script hash and that's why it doesn't return you the proper amount.

That was firstly answered by @ranochigo. You can find out more here: Electrum doesn't show rewarded coins.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
BitcoinGirl.Club
Legendary
*
Offline Offline

Activity: 2772
Merit: 2713


Farewell LEO: o_e_l_e_o


View Profile WWW
April 28, 2021, 07:00:54 PM
 #4

Yes, that's because electrum doesn't display P2PK transactions and Hal's rewarded bitcoins were paid to his public key. For an unknown reason, electrum looks only for the transactions that are related through through the derived script hash from the address. Pay-to-public-key transactions aren't related to that script hash and that's why it doesn't return you the proper amount.

That was firstly answered by @ranochigo. You can find out more here: Electrum doesn't show rewarded coins.
I was totally ignorant about this phenomenon LOL

So if I have the private key then would I be able to see the actual balance and would be able to spend using Electrum? I guess I would?

▄▄███████▄▄
▄██████████████▄
▄██████████████████▄
▄████▀▀▀▀███▀▀▀▀█████▄
▄█████████████▄█▀████▄
███████████▄███████████
██████████▄█▀███████████
██████████▀████████████
▀█████▄█▀█████████████▀
▀████▄▄▄▄███▄▄▄▄████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀
.
 MΞTAWIN  THE FIRST WEB3 CASINO   
.
.. PLAY NOW ..
mocacinno
Legendary
*
Online Online

Activity: 3388
Merit: 4922


https://merel.mobi => buy facemasks with BTC/LTC


View Profile WWW
April 28, 2021, 07:11:17 PM
 #5

--snip--
I was totally ignorant about this phenomenon LOL

So if I have the private key then would I be able to see the actual balance and would be able to spend using Electrum? I guess I would?

Electrum doesn't fetch the unspent output from the electrum node... So, no, if you had the private key you wouldn't be able to spend the coinbase reward using electrum's gui...
That being said, you could theoretically use electrum to sign an unsigned raw transaction spending the coinbase reward if you used a different tool to create said transaction... At least, i guess this would work... Never tried it tough... Maybe somebody else did try this and could weigh in?

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
BlackHatCoiner
Legendary
*
Online Online

Activity: 1512
Merit: 7364


Farewell, Leo


View Profile
April 28, 2021, 07:14:20 PM
 #6

So if I have the private key then would I be able to see the actual balance and would be able to spend using Electrum? I guess I would?
No, it doesn't have to do with that.

When you query a command to an electrum server, whether if you're using a watch-only wallet or not, you're sending the address, not the public key. Electrum nodes fetch the transactions related to that script hash and only those. If you search Hal's address' script hash among all those transactions you'll see that it has received 0.0159762. But if along with the hash, you search the public key you'll see that it's 50.0159762.

A better picture of the subject. Nowdays, when you sign a transaction and broadcast it, you're locking your funds to a 160-bit hash.

Example:
Code:
403556352dc1060df7abc73a7ecfbaeedf99fa20

Back in 2009, you were locking your funds to a compressed ECDSA public key as shown:
Code:
0345baa5126ef28873efb402ca1c0a45ea9f6acfd59858252f5d28d3a6d116373c

I hope I made it clear to you.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
ranochigo
Legendary
*
Offline Offline

Activity: 2968
Merit: 4186



View Profile
April 29, 2021, 11:51:12 AM
Merited by mocacinno (1), BitcoinGirl.Club (1), BlackHatCoiner (1)
 #7

When you query a command to an electrum server, whether if you're using a watch-only wallet or not, you're sending the address, not the public key. Electrum nodes fetch the transactions related to that script hash and only those. If you search Hal's address' script hash among all those transactions you'll see that it has received 0.0159762. But if along with the hash, you search the public key you'll see that it's 50.0159762.
You're actually searching the hash of the scriptpubkey.

Back in 2009, you were locking your funds to a compressed ECDSA public key as shown:
There's no compressed public keys back in 2009 and the payments should've been in P2PKH as well; P2PK was predominantly used for the mining rewards and payment through the IP(CMIIW).


Electrum did have plans to make descriptors a thing and thus allowing for P2PK transactions as well. I don't think this is implemented yet but its no big deal as well. The difference between P2PK and P2PKH is also the way the  scriptsig is arranged which I doubt Electrum is compatible with as well.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!