pylibsimba.simba.Simbachain

class pylibsimba.simba.Simbachain(endpoint: str, wallet)

Main object to interact with the PyLibSIMBA API

__init__(endpoint: str, wallet)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(endpoint, wallet)

Initialize self.

add_funds()

Add funds to the attached Wallet.

api_auth_headers()

call_method(method, parameters)

Call a method on the API

call_method_with_file(method, parameters, files)

Call a method on the API with files

check_transaction_done(txn)

Check if the transaction is complete

check_transaction_status(txn_id)

Gets the status of a transaction by ID

check_transaction_status_from_object(txn)

Gets the status of a transaction

get_balance()

Get the balance for the attached Wallet

get_bundle_for_transaction(…[, stream])

Gets the bundle for a transaction

get_bundle_metadata_for_transaction(…)

Gets the bundle metadata for a transaction

get_file_from_bundle_by_name_for_transaction(…)

Gets a file from the bundle for a transaction

get_file_from_bundle_for_transaction(…[, …])

Gets a file from the bundle for a transaction

get_method_transactions(method, parameters)

Gets a paged list of transactions for the method

get_organisations([base_url])

Gets a paged list of organisations

get_transaction(transaction_id_or_hash)

Gets a specific transaction

get_transaction_status(transaction_id_or_hash)

Gets the status of a specific transaction

get_transactions(parameters)

Gets a paged list of transactions

management_auth_headers()

send_transaction_request(url)

Internal function for sending transaction GET requests

set_api_key(api_key)

set_management_key(management_key)

set_wallet(wallet)

validate_any_get_call()

Validate the method call against the app metadata

validate_call(method_name, parameters[, files])

Validate the method call against the app metadata

validate_get_call(method_name, parameters)

Validate the method call against the app metadata

wait_for_success_or_error(txn_id[, …])