ITO Trigger

Updates the properties or trigger functionalities of a fungible token, NFT collection or a single NFT.

The required parameters will depend on the trigger type. Trigger Type and AssetID are required in all of them.

Trigger Types:

List with all trigger types values and its required payload fields. You can see more info about each field here. Any parameter you send beyond the required ones will be ignored.

IDTypeDescriptionParameters

0

SetITOPrices

Update ITOs packs prices

packInfo

1

UpdateStatus

Update status

status

2

UpdateReceiverAddress

Update receiver address

receiverAddress

3

UpdateMaxAmount

Update max amount of minted NFTs

maxAmount

4

UpdateDefaultLimitPerAddress

Update default limit per address

defaultLimitPerAddress

5

UpdateTimes

Update start and end time of ITO

startTime, endTime

6

UpdateWhitelistStatus

Update whitelist status

whitelistStatus

7

AddToWhitelist

Adds address to whitelist

whitelistInfo

8

RemoveFromWhitelist

Remove address from whitelist

whitelistInfo

9

UpdateWhitelistTimes

Update start and end time of whitelist

whitelistStartTime, whilelistEndTime

Payload Parameters

RequiredParameterTypeDescription

triggerType

number

Sets the trigger type

(check list above)

kda

string

Target Asset

receiverAddress

string

Address that will receive the currency

status

number

See Status

maxAmount

number

Maximum minted amount (with precision)

packInfo

{[assetID: string]:{ packs: Pack[]} }

Defines the currency in which the packs will be sold.

defaultLimitPerAddress

number

Max amount of NFTs an address can buy, if specific amount is not provided.

whitelistStatus

number

See Status

whitelistInfo

{[address: string]: WhiteListInfo}

Defines specific NFT mint limit to given addresses

whitelistStartTime

number

Whitelist start time (in UnixTime (seconds))

whitelistEndTime

number

Whitelist end time (in UnixTime (seconds))

startTime

number

ITO start time (in UnixTime (seconds))

endTime

number

ITO end time (in UnixTime (seconds))

Obs: Javascript's Date.prototype.getTime() should be divided by 1000 for it to be converted to Unix Time (seconds)

Status

Status ValueStatus NameDescription

0

DefaultITO

Keeps previous status value

1

ActiveITO

Enables ITO/Whitelist

2

PausedITO

Pauses ITO/Whitelist

Pack structure

RequiredParameterTypeDescription

amount

number

For NFTs: Amount sold; For token: Min amount for that price to be applied (with precision).

price

number

For NFTs: Price for each NFT; For Tokens: Price for that amount.

WhiteListInfo structure

RequiredParameterTypeDescription

limit

number

Max amount of NFTs an address can buy.

Last updated