diff --git a/etherscan/accounts.py b/etherscan/accounts.py index 78eb8e0..6dce1b2 100644 --- a/etherscan/accounts.py +++ b/etherscan/accounts.py @@ -62,11 +62,18 @@ def get_transaction_page(self, page=1, offset=10000, sort='asc', internal=False) req = self.connect() return req['result'] - def get_all_transactions(self, offset=10000, sort='asc', internal=False) -> list: + def get_all_transactions(self, offset=10000, sort='asc', internal=False, startblock=None, endblock=None) -> list: if internal: self.url_dict[self.ACTION] = 'txlistinternal' else: self.url_dict[self.ACTION] = 'txlist' + + if startblock is not None: + self.url_dict[self.START_BLOCK] = str(startblock) + + if endblock is not None: + self.url_dict[self.END_BLOCK] = str(endblock) + self.url_dict[self.PAGE] = str(1) self.url_dict[self.OFFSET] = str(offset) self.url_dict[self.SORT] = sort diff --git a/setup.py b/setup.py index 6e245e4..be78e9e 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name='py_etherscan_api', - version='0.7.0', + version='0.7.1', packages=['examples', 'examples.stats', 'examples.tokens', 'examples.accounts', 'etherscan'], url='https://github.com/corpetty/py-etherscan-api', license='MIT',