Function createNft

  • Name



    Creates an NFT on the chain.


    NFTCreatedEvent Blockchain event.


    • offchainData: string

      Off-chain related NFT metadata. Can be an IPFS Hash, an URL or plain text.

    • royalty: number = 0

      Percentage of all second sales that the creator will receive. It's a decimal number in range [0, 100]. Default is 0.

    • collectionId: undefined | number = undefined

      The collection that this NFT will belong. Optional Parameter.

    • isSoulbound: boolean = false

      If true makes the NFT untransferable. Default is false.

    • keyring: IKeyringPair

      Account that will sign the transaction.

    • waitUntil: TernoaConstants.WaitUntil

      Execution trigger that can be set either to BlockInclusion or BlockFinalization.

    Returns Promise<TernoaEvents.NFTCreatedEvent>

Generated using TypeDoc