These docs are for v2.0. Click to read the latest docs for v3.0.

Migration Guide to NFT v3

This guide describes the migration process from NFT v2 to NFT v3.

Intro

This guide outlines the seamless migration from NFT API v2 to NFT API v3, unlocking new features for creators and collectors alike.

Why Migrate?

1. ERC-20 Contract Creation

NFT-API..............

2. ERC-20 Token Mints

With...........

Where to find NFT v2.0 docs?

  • Click here to view the deprecated NFT v2 documentation.
  • Alternatively, you can switch between v2.0(deprecated) & v3.0(stable) of our documentation from the top left corner as shown below:
    • The v2.0 includes the deprecated NFT-API v2 (Guides + API Reference)
    • The v3.0 has the latest product features including the NFT-API v3.
NFT v1 Documentation

NFT v1 Documentation

Migrating to NFT API v3

1. Base URL Change

The base URL for NFT v3 will become:

https://token-api.venly.io
https://token-api-sandbox.venly.io

2. Path Change

In the path of every endpoint, replace /v2/ with /v3/erc1155/.

For example, the endpoint to create a contract with v2 is:

POST /api/v2/contracts/deployments

With v3, the endpoint becomes:

POST /api/v3/erc1155/contracts/deployments

3. Replace secretType with chain

Replace secretType with chain everywhere, specifically in the path variable and request bodies.

Request Bodies

Replace secretType with chain in the request bodies for:

  • Mint tokens endpoint (POST /api/v3/erc1155/tokens/mints)
  • Create token-type endpoint (POST /api/v3/erc1155/token-types/creations)

Path Params

Replace {secretType} with {chain} in the path of all the endpoints where applicable.

For example, the path to get a contract by blockchain and contract address with v2 is:

GET /api/v2/contracts/{secretType}/{contractAddress}

With v3, replace the {secretType} param with {chain} and the path becomes:

GET /api/v3/erc1155/contracts/{chain}/{contractAddress}

Response Bodies

In the response bodies, secretType will be replaced by the chain parameter.

4. Removed Endpoints

The following endpoints from v2 have been removed in v3:

Endpoint NameEndpoint URL
Create company/minter walletsPOST /api/v2/wallets

We decided to remove the endpoint mentioned above because of mass minting. Mass minting allows you to mint a huge number of NFTs simultaneously. You don't need to wait for the entire minting process to be completed before getting your response.

Mass minting takes care of the token-type creation request or an NFT mint request, thus eliminating the need to create company/minter wallets.

5. Update path for get supported chains endpoint

The endpoint to retrieve supported chains in NFT v2 was:

GET /api/v2/env

The endpoint changes to the following in NFT v3:

GET /api/v3/erc1155/chains

6. New Endpoints NFT v3

EndpointsDescription
Update contract ownerThis endpoint updates the owner of an NFT contract. The owner has admin rights to the contract.
Update contract royaltyThis endpoint adds or updates the royalty information for an NFT contract. You can specify the royalty recipient's wallet address and the royalty percentage. (This endpoint can only be used on NFT contracts created with NFT v3)

Deprecated Endpoints (v2)

Deprecated EndpointsWhat to use instead?Differences
Get All Contract v2Get All Contracts v3- Path param changed
Create Contract v2Create Contract v3- Path param changed
Get Contract Status v2Get Contract Status v3- Path param changed
Get Contract by chain and contract address v2Get Contract by chain and contract address v3- Path param changed - Replace {secretType} with {chain} in the path
Delete Contract v2Delete Contract v3- Path param changed - Replace {secretType} with {chain} in the path
Get Contract Metadata v2Get Contract Metadata v3- Path param changed - Replace {secretType} with {chain} in the path
Update Contract Metadata v2Update Contract Metadata v3- Path param changed - Replace {secretType} with {chain} in the path
Get All Token-types v2Get All Token-types v3- Path param changed - Replace {secretType} with {chain} in the path
Create Token-type v2Create Token-type v3- Path param changed - Replace secretType with chain in the request body
Get token-type status v2Get token-type status v3- Path param changed
Get Specific Token-type v2Get Specific Token-type v3- Path param changed - Replace {secretType} with {chain} in the path
Delete Token-type v2Delete Token-type v3- Path param changed - Replace {secretType} with {chain} in the path
Get Token-type Metadata v2Get Token-type Metadata v3- Path param changed - Replace {secretType} with {chain} in the path
Update Token-type Metadata v2Update Token-type Metadata v3- Path param changed - Replace {secretType} with {chain} in the path
Get all tokens v2Get all tokens v3- Path param changed - Replace {secretType} with {chain} in the path
Get All Token Mints v2Get All Token Mints v3- Path param changed
Mint Tokens v2Mint Tokens v3- Path param changed - Replace secretType with chain in the request body
Get mint status v2Get mint status v3- Path param changed
Get Specific Token Details v2Get Specific Token Details v3- Path param changed - Replace {secretType} with {chain} in the path
Get Token Metadata v2Get Token Metadata v3- Path param changed - Replace {secretType} with {chain} in the path
Update Property v2Update Property v3- Path param changed - Replace {secretType} with {chain} in the path
Delete Property v2Delete Property v3- Path param changed - Replace {secretType} with {chain} in the path
Add Attribute v2Add Attribute v3- Path param changed - Replace {secretType} with {chain} in the path
Update Attribute v2Update Attribute v3- Path param changed - Replace {secretType} with {chain} in the path
Delete Attribute v2Delete Attribute v3- Path param changed - Replace {secretType} with {chain} in the path
Update Animation URLs v2Update Animation URLs v3- Path param changed - Replace {secretType} with {chain} in the path
Delete Animation URLs v2Delete Animation URLs v3- Path param changed - Replace {secretType} with {chain} in the path
Get Supported Chains v2Get Supported Chains v3- Path changed from /api/v2/env to /api/v3/erc1155/chains
Get all Company Wallets v2Get all Company Wallets v3- Path param changed
Get Company Wallets by chain v2Get Company Wallet by chain v3- Path param changed
Delete Company Wallet v2Delete Company Wallet v3- Path param changed
Upload Media File v2Upload Media File v3- Path param changed
Upload Image v2Upload Image v3- Path param changed

Token API Endpoints (v3)

EndpointsDescription
Create token contractThis endpoint is used to create an ERC20 contract.
Check token contract statusThis endpoint is used to check the token contract creation request status.
Get all token contractsThis endpoint fetches all of your token contracts.
Get specific token contractThis endpoint is used to get a specific token contract using blockchain and contract address.
Delete token contractThis endpoint is used to delete a token contract.
Mint ERC20 tokensThis endpoint is used to mint and send ERC20 tokens.
Check token mint statusThis endpoint is used to check the status of a token mint request.

Testing

Thoroughly test your integration with NFT API v3 in a sandbox environment to identify and address potential issues before deploying to production.