2121import base58
2222import math
2323
24+ from tronapi import config
2425from tronapi .crypto import utils
2526from tronapi .provider import HttpProvider
2627
27- # Server API from tron.network
28- TRON_NODE = 'https://server.tron.network'
29-
3028
3129class Tron :
3230
@@ -40,7 +38,7 @@ def __init__(self, full_node, solidity_node=None, private_key=None):
4038
4139 self .full_node = full_node
4240 self .solidity_node = solidity_node
43- self .tron_node = HttpProvider (TRON_NODE )
41+ self .tron_node = HttpProvider (config . DEFAULT_TRON_NODE )
4442
4543 if private_key :
4644 self .private_key = private_key
@@ -229,7 +227,7 @@ def get_transactions_related(self, address, direction='all', limit=30, offset=0)
229227 response .update ({'direction' : direction })
230228 return response
231229
232- def get_transactions_to_address (self , address , limit = 20 , offset = 0 ):
230+ def get_transactions_to_address (self , address , limit = 30 , offset = 0 ):
233231 """Query the list of transactions received by an address
234232
235233 Args:
@@ -243,7 +241,7 @@ def get_transactions_to_address(self, address, limit=20, offset=0):
243241 """
244242 return self .get_transactions_related (address , 'to' , limit , offset )
245243
246- def get_transactions_from_address (self , address , limit = 20 , offset = 0 ):
244+ def get_transactions_from_address (self , address , limit = 30 , offset = 0 ):
247245 """Query the list of transactions sent by an address
248246
249247 Args:
0 commit comments