Migration Guide for NFT-API
This is a general guidance for migrating from NFT-API v1 to NFT-API v2.
Intro
This guide outlines the seamless transition from NFT-API v1 to v2, unlocking a realm of new features for creators and collectors alike.
Experience the efficiency of Flash Minting, eliminating timeouts and connection losses during multiple NFT mints. Dive into the dynamic realm of Dynamic NFTs, allowing personalized updates to NFT metadata for a more interactive experience. Stay in the loop with Webhooks, receiving real-time notifications for successful or failed NFT mints.
Join us in embracing these advancements, leaving behind the deprecated NFT-API v1, and ensuring a future-proof integration with our latest and feature-rich NFT-API v2.
Why Migrate?
1. Flash Minting
NFT-API v2 introduces the highly anticipated Flash Minting feature, enabling customers to mint multiple NFTs simultaneously. This enhancement eliminates the risk of timeouts or lost connections due to prolonged processing times or fluctuating gas fees. Flash Minting ensures a smoother and more efficient NFT minting experience.
2. Dynamic NFTs
With NFT-API v2, customers can now enjoy Dynamic NFTs, allowing them to update NFT metadata. This feature empowers creators and collectors to engage with digital assets more dynamically and personally. The dynamic nature of these NFTs introduces a level of interactivity and uniqueness, setting them apart from traditional static NFTs.
3. Webhooks
NFT-API v2 introduces Webhooks, enabling customers to register their webhook endpoints and receive notifications for successful or failed NFT mints. This feature enhances real-time communication and provides better transparency into the minting process.
Deprecated Endpoints (v1)
Deprecated Endpoints | What to use instead? | Differences |
|---|---|---|
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
|
New Endpoints (v2)
| Endpoints | Description |
|---|---|
| Check Contract Status v2 | This endpoint is used to check the status of a contract creation request. |
| Check Token-type Status v2 | This endpoint is used to check the status of a token-type creation request. |
| Check Mint Status v2 | This endpoint is used to check the status of a token mint request. |
| Get All Tokens v2 | This endpoint is used to fetch all tokens under a contract. |
| Get All Company Wallets v2 | This endpoint fetches all of your company minter wallets. |
Removed Endpoints in v2
| Endpoints | What to use instead? | Description |
|---|---|---|
| Get User's Tokens v1 | Get Tokens by Chain and Wallet Address | You can use the alternate endpoint that fetches a user's tokens by blockchain, wallet address, and contract address. |
| Get fungible and non-fungible Tokens | Get all tokens v2 | This endpoint is used to get all tokens in a contract and can be further filtered based on the tokenTypeId |
Testing
Thoroughly test your integration with NFT-API v2 in a sandbox environment to identify and address any potential issues before deploying to production.
Updated about 1 month ago