The royalties in percent basis point (i.e. 250 is 2.5%) that should be paid to the creators on each secondary sale.
The URI that points to the JSON metadata of the asset.
The address corresponding to the merkle tree where this compressed NFT will be stored.
Must be created ahead of time.
metaplex.identity()
Optional
symbol?: undefined | stringThe on-chain symbol of the asset, stored in the Metadata account. E.g. "MYSFT".
""
Optional
collection?: undefined | Option<PublicKey>The Collection NFT that this new SFT belongs to.
When null
, the created SFT will not be part of a collection.
null
Optional
creators?: undefined | CreatorInput[]This object provides a way of providing creator information when needed, e.g. when creating or updating NFTs, candy machines, etc.
It allows us to optionally provide an authority as a Signer so we can both set and verify the creator within the same operation.
Defaults to using the provided updateAuthority
as the only verified creator.
[{
address: updateAuthority.publicKey,
authority: updateAuthority,
share: 100,
}]
Optional
tokenThe owner of a token account associated with the SFT to create.
This is completely optional as creating an SFT does not require the existence of a token account. When provided, an associated token account will be created from the given owner.
You may alternatively pass the tokenAddress
parameter instead.
Defaults to not creating and/or minting any token account.
Optional
updateThe authority that will be able to make changes to the created SFT.
This is required as a Signer because creating the metadata account requires the update authority to be part of the creators array as a verified creator.
metaplex.identity()
Optional
isWhether or not the SFT's metadata is mutable.
When set to false
no one can update the Metadata account,
not even the update authority.
true
Optional
uses?: undefined | Option<Uses>When this field is not null
, it indicates that the SFT
can be "used" by its owner or any approved "use authorities".
null
Optional
collectionThe collection authority that should sign the created SFT
to prove that it is part of the provided collection.
When null
, the provided collection
will not be verified.
null
Optional
collectionWhether or not the provided collectionAuthority
is a delegated
collection authority, i.e. it was approved by the update authority
using metaplex.nfts().approveCollectionAuthority()
.
false
Optional
tokenWhether or not the provided token account already exists.
If false
, we'll add another instruction to create it.
true
Optional
createA key to distinguish the instruction that creates the mint account.
Optional
initializeA key to distinguish the instruction that initializes the mint account.
Optional
createA key to distinguish the instruction that creates the associated token account.
Optional
createA key to distinguish the instruction that creates the token account.
Optional
initializeA key to distinguish the instruction that initializes the token account.
Optional
mintA key to distinguish the instruction that mints tokens.
Optional
createA key to distinguish the instruction that creates the metadata account.
Generated using TypeDoc
The on-chain name of the asset, e.g. "My SFT".