These docs are for v1.3.0. Click to read the latest docs for v1.6.

Asset

Defines CPP API for managing assets.

Summary

MembersDescriptions
public int64_t amountThe amount of the asset.
public symbol_type symbolThe symbol name of the asset.
public inline explicit asset(int64_t a,symbol_type s)Construct a new asset object.
public inline bool is_amount_within_range () constCheck if the amount doesn't exceed the max amount.
public inline bool is_valid () constCheck if the asset is valid.
public inline void set_amount(int64_t a)Set the amount of the asset.
public inline asset operator-() constUnary minus operator.
public inline asset&operator-=(const asset & a)Subtraction assignment operator.
public inline asset&operator+=(const asset & a)Addition Assignment operator.
public inline asset&operator*=(int64_t a)Multiplication assignment operator, with a number.
public inline asset&operator/=(int64_t a)Division assignment operator, with a number.
public inline void print() constPrint the asset

public amount`

The amount of the asset

The symbol name of the asset