bitshares.blockchainobject module

class bitshares.blockchainobject.BlockchainObject(data, klass=None, space_id=1, object_id=None, lazy=False, use_cache=True, *args, **kwargs)

Bases: dict, bitshares.instance.BlockchainInstance

cache(key=None)
static clear_cache()
getcache(id)
iscached(id)
items() → a set-like object providing a view on D's items
static objectid_valid(i)
space_id = 1
test_valid_objectid(i)
testid(id)
type_id = None
type_ids = []
class bitshares.blockchainobject.ObjectCache(initial_data={}, default_expiration=10, no_overwrite=False)

Bases: dict

get(k[, d]) → D[k] if k in D, else d. d defaults to None.
set_expiration(expiration)