Skip to content

Commit

Permalink
Merge pull request #126 from eric-volz/node/add_arguments_listaccount…
Browse files Browse the repository at this point in the history
…history

Add missing arguments to listaccounthistory
  • Loading branch information
eric-volz authored Oct 15, 2023
2 parents b6f8cfd + 0fb69f1 commit 7ec151b
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions defichain/node/modules/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ def gettokenbalances(self, start: str = None, including_start: bool = None, limi
return self._node._rpc.call("gettokenbalances", pagination.build(), indexed_amounts, symbol_lookup, evm)

def listaccounthistory(self, owner: str, maxBlockHeight: int = None, depth: int = None, no_rewards: bool = None,
token: str = None, txtype: str = None, limit: int = None, txn: int = None,
format: str = None) -> [{}]: # 12
token: str = None, txtype: str = None, txtypes: [] = None, limit: int = None,
start: int = None, including_start: bool = None, txn: int = None, format: str = None) -> [{}]: # 12
"""
Returns information about account history.
Expand All @@ -277,8 +277,14 @@ def listaccounthistory(self, owner: str, maxBlockHeight: int = None, depth: int
:type token: str
:param txtype: (optional) Filter by transaction type, supported letter from {CustomTxType}
:type txtype: str
:param txtypes: (optional) Filter multiple transaction types, supported letter from {CustomTxType}
:type txtypes: json array
:param limit: (optional) Maximum number of records to return, 100 by default
:type limit: int
:param start: (optional) Number of entries to skip
:type start: int
:param including_start: (optional) If true, then iterate including starting position. False by default
:type including_start: int
:param txn: (optional) Order in block, unlimited by default
:type txn: int
:param format: (optional) Return amounts with the following: 'id' -> <amount>@id; (default)'symbol' -> <amount>@symbol
Expand All @@ -295,7 +301,10 @@ def listaccounthistory(self, owner: str, maxBlockHeight: int = None, depth: int
options.append("no_rewards", no_rewards)
options.append("token", token)
options.append("txtype", txtype)
options.append("txtypes", txtypes)
options.append("limit", limit)
options.append("start", start)
options.append("including_start", including_start)
options.append("txn", txn)
options.append("format", format)

Expand Down

0 comments on commit 7ec151b

Please sign in to comment.