# [Ride v4 and v3] Asset
⚠️ This is the documentation for the Standard library version 4 and 3. We recommend to use version 6. Go to version 6
Structure of a token. The structure is returned by the assetInfo built-in function.
# Constructor
For Standard library version 3:
Asset(id: ByteVector, quantity: Int, decimals: Int, issuer: Address, issuerPublicKey: ByteVector, reissuable: Boolean, scripted: Boolean, sponsored: Boolean)
For Standard library version 4:
Asset(id: ByteVector, quantity: Int, decimals: Int, issuer: Address, issuerPublicKey: ByteVector, reissuable: Boolean, scripted: Boolean, minSponsoredFee: Int|Unit, name: String, description: String)
# Fields
# | Name | Data type | Description |
---|---|---|---|
1 | id | ByteVector | Token ID |
2 | quantity | Int | Amount of issued token, multiplied by 10decimals. Up to 9 223 372 036 854 775 806 |
3 | decimals | Int | Number of decimal places, 0 to 8 |
4 | issuer | Address | Address of the account that issued a token |
5 | issuerPublicKey | ByteVector | Public key of the account that issued a token |
6 | reissuable | Boolean | true — token can be reissued, false — cannot be reissued |
7 | scripted | Boolean | true — smart asset, false — regular token |
8 | sponsored | Boolean | true — sponsorship is enabled, false — sponsorhip is disabled. ⚠️ The field is deleted in Standard library version 4 |
9 | minSponsoredFee | Int|Unit | Amount of asset that is equivalent to 0.001 WAVES (100,000 WAVELET), specified in the minimum fraction (“cents”) of asset. See the Sponsored fee articleunit : sponrship is disables.The field is added in Standard library version 4 |
10 | name | String | Token name, up to 16 characters. The field is added in Standard library version 4 |
11 | description | String | Token description, up to 1000 characters. The field is added in Standard library version 4 |