Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using get_erc721_token_transfer_events_by_address #25

Open
NeoSephiroth opened this issue Nov 18, 2021 · 3 comments
Open

Using get_erc721_token_transfer_events_by_address #25

NeoSephiroth opened this issue Nov 18, 2021 · 3 comments

Comments

@NeoSephiroth
Copy link

hi!

I'm new to this package...

from etherscan import Etherscan
eth = Etherscan('MY API KEY') # key in quotation marks

block_number_start=eth.get_block_number_by_timestamp(timestamp="1609490044", closest="before")
block_number_end=eth.get_block_number_by_timestamp(timestamp="1637224444", closest="before")

erc_20_transactions = eth.get_erc20_token_transfer_events_by_address(address='0xd8Fa365f358729Af1D62206BdDaD84cBb2BEFB7d',startblock=block_number_start,endblock=block_number_end,sort='asc')
erc_721_transactions = eth.get_erc721_token_transfer_events_by_address(address='0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a',startblock=block_number_start,endblock=block_number_end,sort='asc')

print(block_number_start)
print(block_number_end)
print(erc_20_transactions)
print(erc_721_transactions)

This is a fragment of code I'm using by I keep getting errors....can anyone help me?

@github-actions
Copy link

Thanks for reporting this issue, we are on it :)

@c-git
Copy link

c-git commented Mar 21, 2022

Did you guys get your issue sorted? If not can you share the error message?

Repository owner deleted a comment from NeoSephiroth Jul 27, 2022
Repository owner deleted a comment from NeoSephiroth Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@NeoSephiroth @c-git and others