Bitcoin Forum
May 05, 2024, 09:47:45 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: watch_address - response  (Read 437 times)
trepidant (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
April 29, 2015, 08:26:00 PM
 #1

Hello it seems that the scripts have not been updated in a while as the ones I tested return errors.

Anyway, the script I want to use is the watch_address one , so I start it up and on an update it returns a 64-length string. I looked up the string on block explorers and found nothing also tried to decode it in various ways.

What does this string mean?
ex - 4952fff4bfec7ff92ac25218d467edfb4e1915e80c6ab962276a5395c1a2f8b6
How can I properly decode this into a txid or something I can use.

I tried to look into the electrum-server source code to find the answer but honestly got a little lost in the code.
1714902465
Hero Member
*
Offline Offline

Posts: 1714902465

View Profile Personal Message (Offline)

Ignore
1714902465
Reply with quote  #2

1714902465
Report to moderator
1714902465
Hero Member
*
Offline Offline

Posts: 1714902465

View Profile Personal Message (Offline)

Ignore
1714902465
Reply with quote  #2

1714902465
Report to moderator
1714902465
Hero Member
*
Offline Offline

Posts: 1714902465

View Profile Personal Message (Offline)

Ignore
1714902465
Reply with quote  #2

1714902465
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714902465
Hero Member
*
Offline Offline

Posts: 1714902465

View Profile Personal Message (Offline)

Ignore
1714902465
Reply with quote  #2

1714902465
Report to moderator
btchris
Hero Member
*****
Offline Offline

Activity: 672
Merit: 504

a.k.a. gurnec on GitHub


View Profile WWW
April 29, 2015, 10:50:01 PM
 #2

What does this string mean?
ex - 4952fff4bfec7ff92ac25218d467edfb4e1915e80c6ab962276a5395c1a2f8b6
How can I properly decode this into a txid or something I can use.

When an update occurs, the result is a hash of the entire tx history.

To determine what changed, you need to do a get_history.

The idea is that wallet software can cache the result from watch_address, and only issue a get_history when the hash changes.
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!