Asset

class peerplays.asset.Asset(asset, lazy=False, full=False, peerplays_instance=None)

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 dat
  • peerplays_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().

flags

List the permissions that are currently used (flags)

is_bitasset

Is the asset a mpa?

permissions

List the permissions for this asset that the issuer can obtain

refresh()

Refresh the data from the API server