git://git.novaco.in
/
electrum-nvc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
waiting dialog: handle exceptions
[electrum-nvc.git]
/
scripts
/
get_history
1
#!/usr/bin/env python
2
3
import sys
4
from electrum import NetworkProxy, print_json
5
6
try:
7
addr = sys.argv[1]
8
except Exception:
9
print "usage: get_history <bitcoin_address>"
10
sys.exit(1)
11
12
n = NetworkProxy()
13
n.start(start_daemon=True)
14
h = n.synchronous_get([ ('blockchain.address.get_history',[addr]) ])[0]
15
print_json(h)
16