helium_py.api.pending_transactions.PendingTransactions

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

Bases: API

Pending Transactions client class for Helium Blockchain API.

https://docs.helium.com/api/blockchain/pending-transactions

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

Yield transaction status details for a particular hash.

submit_transaction(txn)

Submit a transaction to the Helium Blockchain API.

Attributes

base_path

client

Return a client singleton per API.

host

port

user_agent

property client: Client

Return a client singleton per API.

get_status(transaction_hash: str) dict[source]

Yield transaction status details for a particular hash.

Args:

transaction_hash: The transaction hash to fetch pending transaction details.

submit_transaction(txn: Union[str, Transaction]) dict[source]

Submit a transaction to the Helium Blockchain API.

Args:

txn: The base64 encoded transaction data str or Transaction object.