Explorar o código

add collection info (#316)

MarkSackerberg hai 9 meses
pai
achega
5099d36083
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/pages/token-metadata/mint.md

+ 4 - 0
src/pages/token-metadata/mint.md

@@ -377,6 +377,8 @@ await createNft(umi, {
   name: 'My NFT',
   uri: 'https://example.com/my-nft.json',
   sellerFeeBasisPoints: percentAmount(5.5),
+  // optional if you directly want to add to a collection. Need to verify later.
+  // collection: some({ key: collectionMint.publicKey, verified: false }),
 }).sendAndConfirm(umi)
 ```
 
@@ -430,6 +432,8 @@ await createProgrammableNft(umi, {
   name: 'My Programmable NFT',
   uri: 'https://example.com/my-programmable-nft.json',
   sellerFeeBasisPoints: percentAmount(5.5),
+  // optional if you directly want to add to a collection. Need to verify later.
+  // collection: some({ key: collectionMint.publicKey, verified: false }),
 }).sendAndConfirm(umi)
 ```