grapheneapi.api module

class grapheneapi.api.Api(urls, user=None, password=None, **kwargs)

Bases: object

api_id

This allows to list api_ids, if they have been registered through api_register() – LEGACY

In previous API version, one would connect and register to APIs like this

self.api_id["database"] = self.database(api_id=1)
self.api_id["history"] = self.history(api_id=1)
self.api_id["network_broadcast"] = self.network_broadcast(
    api_id=1)
chain_params
connect()
connection
error_url()
find_next()

Find the next url in the list

get_network()
next()
post_process_exception(exception)
register_apis()

This method is called right after connection and has previously been used to register to different APIs within the backend that are considered default. The requirement to register to APIs has been removed in some systems.

reset_counter()

reset the failed connection counters

updated_connection()