feat: Add receive function

This commit is contained in:
2023-12-28 16:58:11 +11:00
parent 713b33d05f
commit d6f98960b0
16 changed files with 2506 additions and 3 deletions

View File

@@ -57,6 +57,13 @@ def getBalance(account: str):
return {'available': available, 'total': total}
def getAddress(account: str):
# Get the address
info = hsw.getAccountInfo(account, 'default')
if 'error' in info:
return ''
return info['receiveAddress']
def getPendingTX(account: str):
# Get the pending transactions
info = hsw.getWalletTxHistory()