Skip to content

Commit a959fcf

Browse files
committed
added confirmed latest block
1 parent 0f182d2 commit a959fcf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tronapi/trx.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ def get_current_block(self):
4141
"""Query the latest block"""
4242
return self.tron.manager.request(url='/wallet/getnowblock')
4343

44+
def get_confirmed_current_block(self):
45+
"""Query the confirmed latest block"""
46+
return self.tron.manager.request('/walletsolidity/getnowblock')
47+
4448
def get_block(self, block: Any = None):
4549
"""Get block details using HashString or blockNumber
4650

0 commit comments

Comments
 (0)