Type alias MintNftInput

MintNftInput: {
    nftOrSft: Pick<Sft, "address" | "tokenStandard">;
    authority?: Signer | TokenMetadataAuthorityMetadata;
    authorizationDetails?: TokenMetadataAuthorizationDetails;
    toOwner?: PublicKey;
    toToken?: PublicKey;
    amount?: SplTokenAmount;
}

Type declaration

  • nftOrSft: Pick<Sft, "address" | "tokenStandard">

    The NFT or SFT to mint from. We only need its address and token standard.

  • Optional authority?: Signer | TokenMetadataAuthorityMetadata

    An authority allowed to mint the asset.

    This must be the update authority for Non-Fungible assets and the mint authority for Semi-Fungible assets.

    Note that Delegate and Holder authorities are not supported for this instruction.

    See

    TokenMetadataAuthority

    Default Value

    metaplex.identity()

  • Optional authorizationDetails?: TokenMetadataAuthorizationDetails

    The authorization rules and data to use for the mint.

    See

    TokenMetadataAuthorizationDetails

    Default Value

    Defaults to not using auth rules.

  • Optional toOwner?: PublicKey

    The owner of the destination token account.

    Default Value

    metaplex.identity().publicKey

  • Optional toToken?: PublicKey

    The address of the destination token account.

    This may be a regular token account or an associated token account. If the token account does not exist, then it will be created but only if it is an associated token account.

    Default Value

    Defaults to using the associated token account from the nftOrSft.address and toOwner parameters.

  • Optional amount?: SplTokenAmount

    The amount of tokens to mint.

    Default Value

    token(1)

Generated using TypeDoc