helium_py.api.ouis.OUIs

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

Bases: API

OUIs client class for Helium Blockchain API.

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

__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()

Yield all ouis.

get_last()

Return the last assigned OUI transaction.

get_oui(address)

Return information for a specific OUI.

get_stats()

Return stats for the registered OUIs.

Attributes

base_path

client

Return a client singleton per API.

host

port

user_agent

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

Yield all ouis.

property client: Client

Return a client singleton per API.

get_last() dict[source]

Return the last assigned OUI transaction.

get_oui(address: int) dict[source]

Return information for a specific OUI.

Args:

address: The oui address to fetch information for.

get_stats() dict[source]

Return stats for the registered OUIs.