Closed eddieparker closed 3 years ago
Hi @eddieparker could you clarify the issue?
your function get_total_balance takes an api_key parameter and doesn't use it. It would be great if it used it in the get_address_overview() so it can use your api_key.
More explicitly, your function looks like this:
def get_total_balance(address, coin_symbol='btc', api_key=None):
return get_address_overview(address=address, coin_symbol=coin_symbol)['final_balance'])
When it should look like this:
def get_total_balance(address, coin_symbol='btc', api_key=None):
return get_address_overview(address=address, coin_symbol=coin_symbol)['final_balance'], api_key=api_key)
Ah got it and it's basically everywhere... See https://github.com/blockcypher/blockcypher-python/pull/98 for a fix. Please review if you can.
Excerpt:
This makes everyone rate limited as if they're accessing things without a token.