Build & Model A FAT-0 Issuance
Kind: global class
Access: public
- IssuanceBuilder0
- new IssuanceBuilder(tokenId, identityChainId, sk1)
- .symbol(symbol) ⇒
IssuanceBuilder
- .supply(supply) ⇒
IssuanceBuilder
- .precision(precision) ⇒
IssuanceBuilder
- .metadata(metadata) ⇒
IssuanceBuilder
- .build() ⇒
Issuance
Param | Type | Description |
---|---|---|
tokenId | string |
arbitrary string to use as a token identifier |
identityChainId | string |
64 character Factom Chain ID of the identity to issue the token under |
sk1 | string |
SK1 Private key belonging to the identity at identityChainId |
Set a symbol for the token
Kind: instance method of IssuanceBuilder0
Param | Type | Description |
---|---|---|
symbol | string |
arbitrary string to use as a token symbol identifier. e.x. MYT |
Set a maximum circulating supply for the token
Kind: instance method of IssuanceBuilder0
Param | Type | Description |
---|---|---|
supply | number |
An integer maximum circulating supply to allow for the token. May be -1 for infinite, otherwise must be greater than 0 |
Set a decimal precision for the token.
Kind: instance method of IssuanceBuilder0
Param | Type | Description |
---|---|---|
precision | number |
Must be an integer between 0 and 18 inclusive |
Set arbitrary metadata for the token issuance
Kind: instance method of IssuanceBuilder0
Param | Type | Description |
---|---|---|
metadata | * |
The metadata. Must be JSON stringifyable |
Build the issuance
Kind: instance method of IssuanceBuilder0