Create Asset
Creates a new fungible token or a NFT collection.
Payload Parameters
Required | Parameter | Type | Description |
---|---|---|---|
name |
| Asset name | |
ticker |
| Asset shorthand | |
ownerAddress |
| Owner address | |
precision |
| Asset precision (0 to 8) | |
uris | Relevant URI's | ||
logo |
| Logo uri | |
initialSupply |
| Initial minted supply (fungible only)(with precision) | |
maxSupply |
| Maximum supply of the asset (with precision) | |
type |
| 0: Fungible Token, 1: NFT | |
staking | Staking object | Staking info | |
royalties | Royalties object | Royalties info | |
roles | Role object array | Other addresses roles info | |
properties | Properties object | Asset properties details | |
attributes | Attributes object | Is paused/mint stopped? |
Staking structure
Required | Parameter | Type | Description |
---|---|---|---|
interestType | number | 0: APR, 1: FPR | |
apr | number | Percentage | |
minEpochsToClaim | number | Minimum epochs to claim rewards | |
minEpochsToUnstake | number | Minimum epochs to unstake | |
minEpochsToWithdraw | number | Minimum epochs to withdraw after unstake |
Royalties structure
Required | Parameter | Type | Description |
---|---|---|---|
address |
| Royalty receiver address | |
transferPercentage | RoyaltyInfo object array | Transfer fee for fungible tokens (precision 2) | |
transferFixed |
| Transfer fee for non-fungible tokens | |
marketPercentage |
| Market percentage fee details for non-fungible tokens (precision 2) | |
marketFixed |
| Market fixed fee for non-fungible tokens | |
itoPercentage |
| ITO percentage fee (precision 2) | |
itoFixed |
| ITO fixed fee (in the currency asset precision) | |
splitRoyalties |
| Defines the percentage of the fees when multiple addresses receive royalties |
RoyaltySplitInfo structure
Required | Parameter | Type | Description |
---|---|---|---|
percentTransferPercentage |
| percentage that the given address will receive from transfer percentage (precision 2) | |
percentTransferFixed |
| percentage that the given address will receive from transfer fixed (precision 2) | |
percentMarketPercentage |
| percentage that the given address will receive from market percentage (precision 2) | |
percentMarketFixed |
| percentage that the given address will receive from market fixed (precision 2) | |
percentITOPercentage |
| percentage that the given address will receive from ito percentage (precision 2) | |
percentITOFixed |
| percentage that the given address will receive from ito fixed (precision 2) |
RoyaltyInfo structure
Required | Parameter | Type | Description |
---|---|---|---|
amount |
| Max amount for that percentage | |
percentage |
| Fee % (precision 2) |
Role structure
Required | Parameter | Type | Description |
---|---|---|---|
address |
| Other wallet's address | |
hasRoleMint |
| Should be able to mint? | |
hasRoleSetITOPrices |
| Should be able to set ITO prices? |
Properties structure
Required | Parameter | Type | Description |
---|---|---|---|
canFreeze |
| Should be freezable? | |
canWipe |
| Should be wipeable? | |
canPause |
| Should be pausable? | |
canMint |
| Should be mintable? | |
canBurn |
| Should be burnable? | |
canChangeOwner |
| Should the owner be changeable? | |
canAddRoles |
| Should roles be add-able? |
Attributes structure
Required | Parameter | Type | Description |
---|---|---|---|
isPaused |
| Should be currently paused? | |
isNFTMintStopped |
| Should be currently NFT mint stopped? |
Last updated