peerplays.asset module

class peerplays.asset.Asset(*args, **kwargs)

Bases: peerplays.blockchainobject.BlockchainObject

Deals 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 (peerplays.peerplays.PeerPlays) – PeerPlays instance
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 mpa?

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
type_id = 3