helium_py.api.stats.Stats

class helium_py.api.stats.Stats(host=None, port=None, user_agent=None, base_path=None)[source]

Bases: API

Stats client class for Helium Blockchain API.

https://docs.helium.com/api/blockchain/stats

__init__(host=None, port=None, user_agent=None, base_path=None)

Allow for overriding API details at instantiation.

Methods

__init__([host, port, user_agent, base_path])

Allow for overriding API details at instantiation.

get_all()

Get all stats.

get_token_supply([fmt])

Retrieve the Helium token supply.

Attributes

VALID_FORMAT

base_path

client

Return a client singleton per API.

host

port

user_agent

property client: Client

Return a client singleton per API.

get_all() dict[source]

Get all stats.

get_token_supply(fmt: Optional[str] = None) dict[source]

Retrieve the Helium token supply.

Args:

fmt: Specify ‘raw’ to get a raw number, otherwise returns json.