Function addSecretToNft

  • Name

    addSecretToNft

    Summary

    Adds a Secret to an NFT on chain.

    Parameters

    • id: number

      The ID of the NFT.

    • secretOffchainData: string

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

    • keyring: IKeyringPair

      Account that will sign the transaction.

    • waitUntil: WaitUntil

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

    Returns Promise<SecretAddedToNFTEvent>

    SecretAddedToNFTEvent Blockchain event.

Generated using TypeDoc