graphenecommon.asset module¶
-
class
graphenecommon.asset.Asset(*args, **kwargs)¶ Bases:
graphenecommon.blockchainobject.BlockchainObject,graphenecommon.instance.AbstractBlockchainInstanceProviderDeals with Assets of the network.
Parameters: - Asset (str) – Symbol name or object id of an asset
- lazy (bool) – Lazy loading
- full (bool) – Also obtain bitasset-data and dynamic asset data
- blockchain_instance (instance) – instance to use when accesing a RPC
Returns: All data of an asset
Return type: dict
Note
This class comes with its own caching function to reduce the load on the API server. Instances of this class can be refreshed with
Asset.refresh().-
ensure_full()¶
-
flags¶ List the permissions that are currently used (flags)
-
is_bitasset¶ Is the asset a market pegged asset?
-
is_fully_loaded¶ Is this instance fully loaded / e.g. all data available?
-
permissions¶ List the permissions for this asset that the issuer can obtain
-
precision¶
-
refresh()¶ Refresh the data from the API server
-
symbol¶
-
update_cer(cer, account=None, **kwargs)¶ Update the Core Exchange Rate (CER) of an asset