NFTs API Documentation

Verify and Categorize NFTs

URL: /api/nft/verify

Method: POST

Body:

    {
        "wallet_address": "string"
    }
            

Responses:

On Success

    {
        "status": "success",
        "ordinal-nfts": [...]
    }
                

If No NFTs Found

    {
        "error": "No NFTs found for this wallet address"
    }
                

On Error

    {
        "error": "An error occurred while verifying NFTs"
    }
                

Verify and Categorize Bitminer NFTs

URL: /api/nft/bitminer/verify

Method: POST

Body:

    {
        "wallet_address": "string"
    }
            

Responses:

On Success

    {
        "status": "success",
        "ordinal-nfts": {
            name: string;
            type: string;
            count: number;
            inscriptionIds: string[];
          }[]
    }
                

If No NFTs Found

    {
        "error": "No NFTs found for this wallet address"
    }
                

On Error

    {
        "error": "An error occurred while verifying NFTs"
    }
                

Create Supported NFT

URL: /api/nft/create/supportednft

Method: POST

Body:

    {
        "type": "string",
        "name": "string"
    }
            

Responses:

On Success

    {
        "status": "success",
        "nft": {
            "id": "string",
            "type": "string",
            "name": "string",
            "creatorId": "string"
        }
    }
                

If NFT Already Exists

    {
        "error": "NFT with the same name already exists"
    }
                

On Error

    {
        "error": "An error occurred while creating the SupportedNFT"
    }
                

Create Inscription ID

URL: /api/nft/create/inscriptions

Method: POST

Body:

    {
        "supportedNFTId": "string",
        "txtfile": "file"
    }
            

Responses:

On Success

    {
        "status": "success",
        "message": "Inscription IDs created successfully",
        "createdCount": "number"
    }
                

If Invalid SupportedNFTId

    {
        "error": "Invalid supportedNFTId"
    }
                

On Error

    {
        "error": "An error occurred while creating the InscriptionID or Unique Constraint Violation, Please check the file for duplicates"
    }
                

Create NFT Type

URL: /api/nft/create/withoutname/nfttype

Method: POST

Body:

    {
        "type": "string"
    }
            

Responses:

On Success

    {
        "status": "success",
        "nftType": {
            "id": "string",
            "type": "string"
        }
    }
                

If NFTType Already Exists

    {
        "error": "NFTType already exists"
    }
                

On Error

    {
        "error": "An error occurred while creating the NFTType"
    }
                

View All NFT Types

URL: /api/nft/view/all/nfttypes

Method: GET

Responses:

On Success

    {
        "status": "success",
        "nftTypes": [...]
    }
                

On Error

    {
        "error": "An error occurred while viewing the NFTTypes"
    }