Skip to content

Commit

Permalink
balance at certain block height
Browse files Browse the repository at this point in the history
  • Loading branch information
alias-bitsignal authored Sep 25, 2022
1 parent 9d69a21 commit da22e52
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,13 @@ def api_getaddresssince(socket, arg1, arg2, arg3):
response = connections.receive(s)
print(json.dumps(response))

if command == "balanceat":
# balance at certain block height
# requires the HN companion plugin enabled, so it knows the extra api command HN_quick_check_balance
# python3 commands.py balanceat address height
connections.send(s, f"HN_quick_check_balance {arg1} {arg2}")
print(connections.receive(s))

if command == "getversion":
connections.send(s, "getversion")
print(connections.receive(s))
Expand Down

0 comments on commit da22e52

Please sign in to comment.