🪟Mint Additional Supply

Use this method to mint additional supply of an item.

Only works if the circulating supply is less than the maximum supply

Usage in your script

MintAdditionalNFT
  .Initialize(destroyAtEnd: true)
  .SetParameters(
    collection_addr: "0x...",
    token_id: "10",
    amount: "1",
    to_addr: "0x..."
  )
  .OnError(error => Debug.Log(error))
  .OnComplete(result => Debug.Log(result))
  .Run();

Member Functions

.Initialize()

ParameterTypeRequiredDescription

destroyAtEnd

bool

Optional

defines if this component will be destroyed after .Run()

.SetParameters()

ParameterTypeRequiredDescription

collection_addr

String

Yes

The item's collection address

token_id

String

Yes

The item's tokenId

amount

String

Yes

The amount of additional supply you want to mint

to_addr

String

Yes

The address you want to mint the additional supply to​You do not need to mint the additional supply to your own wallet, instead, you can mint them to someone else's wallet right away

.onError()

Action on Error: returns error information.

.onComplete()

Action on successful: returns Transfer_model type.

.Run()

Runs the API call and fills the corresponding model in the component on success.

Last updated