bitsharesapi.bitsharesnoderpc module

class bitsharesapi.bitsharesnoderpc.Api(urls, user=None, password=None, **kwargs)[source]

Bases: grapheneapi.api.Api

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()[source]
connection
error_url()[source]
find_next()[source]

Find the next url in the list

get_network()[source]
next()[source]
post_process_exception(e)[source]
register_apis()[source]

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()[source]

reset the failed connection counters

updated_connection()[source]
class bitsharesapi.bitsharesnoderpc.BitSharesNodeRPC(urls, user=None, password=None, **kwargs)[source]

Bases: bitsharesapi.bitsharesnoderpc.Api

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_account(name, **kwargs)[source]

Get full account details from account name or id

Parameters:name (str) – Account name or account id
get_asset(name, **kwargs)[source]

Get full asset from name of id

Parameters:name (str) – Symbol name or asset id (e.g. 1.3.0)
get_network()[source]

Identify the connected network. This call returns a dictionary with keys chain_id, core_symbol and prefix

get_object(o, **kwargs)[source]

Get object with id o

Parameters:o (str) – Full object id
next()
post_process_exception(e)
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()