This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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 |