Type alias UpdateNftInput

UpdateNftInput: { nftOrSft: Pick<Sft, "address" | "collection" | "creators" | "name" | "symbol" | "uri" | "sellerFeeBasisPoints" | "uses">; updateAuthority?: Signer; newUpdateAuthority?: PublicKey; name?: string; symbol?: string; uri?: string; sellerFeeBasisPoints?: number; creators?: CreatorInput[]; primarySaleHappened?: boolean; isMutable?: boolean; uses?: Option<Uses>; collection?: Option<PublicKey>; collectionAuthority?: Option<Signer>; collectionAuthorityIsDelegated?: boolean; collectionIsSized?: boolean; oldCollectionIsSized?: boolean }

Type declaration

  • nftOrSft: Pick<Sft, "address" | "collection" | "creators" | "name" | "symbol" | "uri" | "sellerFeeBasisPoints" | "uses">

    The NFT or SFT to update. We only need a subset of the Sft (or Nft) model to figure out the current values for the data of the metadata account and only update the parts that are different.

  • Optional updateAuthority?: Signer

    The current update authority of the asset as a Signer.

    Default Value

    metaplex.identity()

  • Optional newUpdateAuthority?: PublicKey

    The address of the new update authority to set for the asset

    Default Value

    Defaults to not being updated.

  • Optional name?: string

    The new on-chain name of the asset.

    Default Value

    Defaults to not being updated.

  • Optional symbol?: string

    The new on-chain symbol of the asset.

    Default Value

    Defaults to not being updated.

  • Optional uri?: string

    The new on-chain uri of the asset.

    Default Value

    Defaults to not being updated.

  • Optional sellerFeeBasisPoints?: number

    The new royalties of the asset in percent basis point (i.e. 250 is 2.5%) that should be paid to the creators on each secondary sale.

    Default Value

    Defaults to not being updated.

  • Optional creators?: CreatorInput[]

    The new creators for the asset. For each creator, if an authority Signer is provided, the creator will be marked as verified.

    Default Value

    Defaults to not being updated.

  • Optional primarySaleHappened?: boolean

    Whether or not the asset has already been sold to its first buyer. This can only be flipped from false to true.

    Default Value

    Defaults to not being updated.

  • Optional isMutable?: boolean

    Whether or not the asset is mutable. When set to false no one can update the Metadata account, not even the update authority. This can only be flipped from true to false.

    Default Value

    Defaults to not being updated.

  • Optional uses?: Option<Uses>

    When this field is not null, it indicates that the asset can be "used" by its owner or any approved "use authorities".

    Default Value

    Defaults to not being updated.

  • Optional collection?: Option<PublicKey>

    The new Collection NFT that this asset belongs to. When null, this will remove the asset from its current collection.

    Default Value

    Defaults to not being updated.

  • Optional collectionAuthority?: Option<Signer>

    The collection authority that should sign the asset to prove that it is part of the newly provided collection. When null, the provided collection will not be verified.

    Default Value

    null

  • Optional collectionAuthorityIsDelegated?: boolean

    Whether or not the provided collectionAuthority is a delegated collection authority, i.e. it was approved by the update authority using metaplex.nfts().approveCollectionAuthority().

    Default Value

    false

  • Optional collectionIsSized?: boolean

    Whether or not the newly provided collection is a sized collection and not a legacy collection.

    Default Value

    true

  • Optional oldCollectionIsSized?: boolean

    Whether or not the current asset's collection is a sized collection and not a legacy collection.

    Default Value

    true

Generated using TypeDoc