We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b15da63 commit aaca516Copy full SHA for aaca516
tronapi/trx.py
@@ -70,6 +70,19 @@ def get_block(self, block: Any = None):
70
})
71
return response
72
73
+ def get_transaction_count_by_blocknum(self, num: int):
74
+ """Query transaction's count on a specified block by height
75
+
76
+ Args:
77
+ num (int): block number
78
+ """
79
+ if not is_integer(num) or num < 0:
80
+ raise ValueError('Invalid num provider')
81
82
+ return self.tron.manager.request('/wallet/gettransactioncountbyblocknum', {
83
+ 'num': num
84
+ })
85
86
def get_block_transaction_count(self, block: Any):
87
"""Total number of transactions in a block
88
0 commit comments