nectar.asset module
- class nectar.asset.Asset(asset: str | int, lazy: bool = False, full: bool = False, blockchain_instance: Any = None, **kwargs)
Bases:
BlockchainObjectDeals 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
blockchain_instance (Blockchain) – Blockchain instance
- Returns:
All data of an asset
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().- property asset: str
- property precision: int
- refresh() None
Refresh the data from the API server
- property symbol: str
- type_id = 3