Skip to content

Instantly share code, notes, and snippets.

@onigirisan
onigirisan / async-etherscan-python.py
Last active August 19, 2021 14:51
async-etherscan-python
"""
Useage:
api_key = ""
api = Etherscan(api_key)
async def get_block_number_by_timestamp(timestamp):
return await api.get_block_number_by_timestamp(timestamp, closest="before")
"""
import json
from importlib import resources