Alchemy: Using The Alchemy SDK with NFTs Minted Through thirdweb
Learn how to use the Alchemy SDK with NFTs minted through thirdweb.
What is Alchemy SDK?
1. Start by navigating to the Thirdweb dashboard and connecting your crypto wallet.

2. Select ‘Create NFTs and Tokens’ from the list of options.

3. Select ‘NFT Collection’:

4. Give your NFT collection a name, icon, and description, then confirm that the recipient address is your crypto wallet address.

5. Select ‘Deploy Now’ and confirm the transaction through your crypto wallet.
6. Next, we need to create an IPFS bucket on Filebase.
7. Select ‘Buckets’ from the left sidebar menu, or navigate to console.filebase.com/buckets.

8. Enter a bucket name and choose the IPFS storage network to create the bucket.

9. Now, upload your NFTs to Filebase using the web console and selecting ‘Folder’, then select the folder that contains your NFT files.
10. You will see your folder uploaded as a single object:

11. Copy the CID of your folder:

12. Navigate to your IPFS Folder using the Filebase IPFS gateway to see your folder’s files:
13. Head back to the Thirdweb dashboard, where you will see the page for your NFT collection.
14. Open a command line window and install the Thirdweb SDK:
15. Open an IDE such as VSCode and insert the following code, replacing CONTRACT with your contract address, WALLET_ADDRESS with your crypto wallet address, each IPFS_CID with your IPFS folder CID you took note of earlier, and replacing the name and description of each NFT with your desired information.
16. Save this script as mint.js, then run this script with the command:
mint.js, then run this script with the command:17. Refresh your Thirdweb dashboard. Your NFTs will be listed.

18. You will need the NFT collection’s contract address later, so copy the contract address as shown here:

19. Next, open a new terminal window. Download the Alchemy SDK with the command:
20. Create a new project directory called alchemy-sdk, then navigate into the directory:
alchemy-sdk, then navigate into the directory:21. Create a new file called get-nfts.js. Insert the following code into this file:
get-nfts.js. Insert the following code into this file:22. Create another new file called get-addresses.js. Enter the following code into this file:
get-addresses.js. Enter the following code into this file:23. Create a new file called get-transactions.js. Insert the following code into the file:
get-transactions.js. Insert the following code into the file:Last updated