<jupyter_start><jupyter_text>Import API key from file<jupyter_code>with open('../../api_key.json', mode='r') as key_file:
    key = json.loads(key_file.read())['key']<jupyter_output><empty_output><jupyter_text>Initiate the Etherscan API<jupyter_code># Start by declaring the ERC20 token contract address
#  These can be found by searching Etherscan.io for the coin you want
contract_address = '0x57d90b64a1a57749b0f932f1a3395792e12e7055'
api = tokens.Tokens(contract_address=contract_address, api_key=key)<jupyter_output><empty_output><jupyter_text>Get token balance of an address<jupyter_code>address = '0xe04f27eb70e025b78871a2ad7eabe85e61212761'
api.get_token_balance(address=address)<jupyter_output><empty_output><jupyter_text>Get total supply of tokens<jupyter_code>api.get_total_supply()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.10206561360874848, 'fraction_numerical': 0.07290400972053462, 'mean_word_length': 10.287671232876713, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '488562', 'license': 'MIT', 'n_tokens_mistral': 341, 'n_tokens_neox': 309, 'n_words': 50, 'path': 'examples/tokens/Token Examples Notebook.ipynb', 'repo_name': 'darkdizco/py-etherscan-api', 'size': '823'}