Expand description
Token types
Structs§
- Token
- Token represented with token id paired with its amount
- Token
Amount - Token amount with bound checks
- TokenId
- Token id (32 byte digest)
Functions§
- token_
amount_ ⚠as_ i64 - Get value as signed 64-bit long
- token_
amount_ ⚠from_ i64 - Create from i64 with bounds check
- token_
get_ ⚠amount - Get token amount
- token_
get_ ⚠id - Get token id
- token_
id_ ⚠from_ box_ id - Create token id from ergo box id (32 byte digest)
- token_
id_ ⚠from_ str - Parse token id (32 byte digest) from base16-encoded string
- token_
id_ ⚠to_ str - Base16 encoded string
- token_
new ⚠ - Create a token with given token id and amount
- token_
to_ ⚠json_ eip12 - JSON representation according to EIP-12 https://github.com/ergoplatform/eips/pull/23