mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
update get_history script
This commit is contained in:
parent
5158799689
commit
61b69f3856
1 changed files with 3 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
||||||
import sys
|
import sys
|
||||||
from electrum import Network
|
from electrum import Network
|
||||||
from electrum.util import json_encode, print_msg
|
from electrum.util import json_encode, print_msg
|
||||||
|
from electrum import bitcoin
|
||||||
|
|
||||||
try:
|
try:
|
||||||
addr = sys.argv[1]
|
addr = sys.argv[1]
|
||||||
|
@ -12,5 +13,6 @@ except Exception:
|
||||||
|
|
||||||
n = Network()
|
n = Network()
|
||||||
n.start()
|
n.start()
|
||||||
h = n.synchronous_get(('blockchain.address.get_history',[addr]))
|
_hash = bitcoin.address_to_scripthash(addr)
|
||||||
|
h = n.synchronous_get(('blockchain.scripthash.get_history',[_hash]))
|
||||||
print_msg(json_encode(h))
|
print_msg(json_encode(h))
|
||||||
|
|
Loading…
Add table
Reference in a new issue