helium_py.api.chain_variables.ChainVariables

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

Bases: API

Chain Variables client class for Helium Blockchain API.

https://docs.helium.com/api/blockchain/chain-variables

__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.

all_activity()

Yield all chain variable activity.

get_all(params)

Return all chain variables.

get_by_name(var_name)

Return a var identified by var_name.

Attributes

base_path

client

Return a client singleton per API.

host

port

user_agent

all_activity() Generator[dict, None, None][source]

Yield all chain variable activity.

property client: Client

Return a client singleton per API.

get_all(params: Optional[dict]) dict[source]

Return all chain variables.

get_by_name(var_name: str) Any[source]

Return a var identified by var_name.