Blockin.ai OpenAPI
  • Welcome
  • 🥳GETTING STARTED
    • 🗝️Creating an Account
    • 👀Product Overview
  • 😈REFERENCE
    • 🐙API Reference
      • Chain
        • Query available chain list
      • Protocol
        • Query available protocol
        • Query available protocol list
        • Query all available protocol list
        • Query available tagInfo list
        • Query available protocol detail
        • Query available protocol detail list
        • Query all available protocol detail list
        • Query liquidity change list by chain name and pool address
        • Query swap list by chain name and pool address
      • User
        • Query used chain by user address
        • Query chain balance by chain name and user address
        • Query protocol portfolio list by chain name and user address
        • Query protocol portfolios on all chains by user address
        • Query protocol portfolio by chain name, protocol name and user address
        • Query protocol portfolios on all chains by protocol name and user address
        • Query protocol top holders by chain name and protocol name
        • Query simple protocol list by chain name and user address
        • Query simple protocol list on all chains by user address
        • Query token list by chain name and user address
        • Query token list on all chains by user address
        • Query token top holders by chain name and token address
        • Query collections by chain name and user address
        • Query collections on all chains by user address
        • Query collections on Bitcoin by user address
        • Query items by chain name, collection address and user address
        • Query inscriptions on Bitcoin by user address
        • Query items transfer list by chain name and user address
        • Query history list by chain name and user address
        • Query all history list by user address
        • Query User history - Advanced edition
        • Query total balance on all supported chains by user address
        • Query token authorized list by chain name and user address
        • Query nft authorized list by chain name and user address
        • Query 24-hour net assets curve by chain name and user address
        • Query 24-hour net assets curve on all supported chains by user address
        • Query 24-hour protocol portfolios curve by chain name and user address
        • Query 24-hour protocol portfolios curve on all supported chains by user address
        • Query 24-hour wallet curve by chain name and user address
        • Query 24-hour wallet curve on all supported chains by user address
      • Token
        • Query token info
        • Query token info list
        • Query token market info list
        • Subscribe to token kline data
        • Unsubscribe token kline
        • Query pool list by chain name and token address
        • Query liquidity change list by chain name and token address
        • Query swap list by chain name and token address
        • Query real-time exchange rate
        • Query real-time token price
        • Query LP_token info
        • Query symbol's price from foreign exchange
      • NFT
        • Query collection metadata by chain name and collection address
        • Query collection trade list by chain name and collection address
        • Query item info list by chain name and collection address
        • Query item metadata by chain name, collection address and item id
        • Refresh collection metadata
        • Query inscriptions metadata on Bitcoin by inscriptions id
      • Mirror
        • Query historical token list
        • Query historical protocol portfolios
        • Query historical assets
        • Query historical token list on all supported chains
        • Query historical protocol portfolios on all supported chains
        • Query historical assets on all supported chains
        • Query historical LP_token info
      • Subscription
        • Create history subscription
        • Update history subscription
        • Delete history subscription
        • History subscription query
        • Socket Subscription Connection
        • Subscription notify
        • Alter history subscription
        • History subscription- Query Batch_no List
        • Create history subscription V2
        • Delete history subscription V2
        • Query history subscription wallet V2
        • Query history subscription detail V2
        • History subscription Message query V2
        • Socket Subscription Connection V2
    • 📜Enumeration
    • 🎭Error Code
      • Pre exec error code
    • 🍪Related Features
      • Usage
    • ⌨️Change Log
    • 😎Terms of Service
Powered by GitBook
On this page
  • Description
  • Request Header
  • Request Parameters
  • Response
  • Public Response
  • Metadata Content
  • Request Sample
  • Successful Response Sample
  • Failed Response Sample
  1. REFERENCE
  2. API Reference
  3. NFT

Query item metadata by chain name, collection address and item id

Description

  • Method: HTTPS GET

  • Encoding: UTF-8

  • Path: https://api.blockin.ai/v2/nft/get_nft_metadata

  • Description: Query item metadata

Request Header

Parameter
Required
Type
Description

Content-Type

Y

String

application/json

AccessKey

Y

String

1bdb01c947c54919b64d1fc6794atest

Request Parameters

Parameter
Required
Type
Description

chain_name

Y

String

collection_address

Y

String

Collection's address

item_id

Y

String

Collection's item id

Response

Public Response

Parameter
Required
Type
Description

success

Y

Boolean

Success Boolean

data

N

Object

Response object

error_code

N

String

Error code

error_msg

N

String

Error message

Metadata Content

Parameter
Required
Type
Description

chain_name

Y

String

Chain's name

collection_address

Y

String

Collection's address

item_id

Y

String

The item ID of the NFT in Number

name

Y

String

Collection's name

symbol

Y

String

Collection's symbol

contract_type

Y

String

The standard of the NFT (721, 1155)

holder_address

Y

String

The wallet address of the holder of the NFT

block_height

Y

Long

The block height when the amount or holder changed

amount

Y

String

Token's amount

mint_block

Y

Long

The block height when the NFT was minted

last_metadata_sync

Y

Long

When the metadata was last updated

last_token_uri_sync

Y

Long

When the token_uri was last updated

item_metadata

Y

ItemMetadata

Item's metadata

ItemMetadata Content

Parameter
Required
Type
Description

item_name

Y

String

Item's name

description

Y

String

The description of the item

item_url

Y

String

URL of the item metada

image

Y

String

URL of the item image

animation_url

Y

String

URL of the item metadata animation

external_url

Y

String

A link to additional information

attributes

Y

list

Item's arrtributes

Attribute Content

Parameter
Required
Type
Description

trait_type

Y

String

Item's trait type

value

Y

String

Trait value

Request Sample

curl -H "Content-Type:application/json" -H "AccessKey:1bdb01c947c54919b64d1fc6794atest" -X GET "https://api.blockin.ai/v2/nft/get_nft_metadata?chain_name=eth&collection_address=0x932261f9fc8da46c4a22e31b45c4de60623848bf&item_id=126891"

Successful Response Sample

{
    "success": true,
    "data": {
        "chain_name": "Ethereum",
        "collection_address": "0x932261f9fc8da46c4a22e31b45c4de60623848bf",
        "amount": "1",
        "mint_block": 17510075,
        "last_metadata_sync": 1687107453,
        "last_token_uri_sync": 1687107453,
        "name": "Zerion DNA 1.0",
        "symbol": "DNA",
        "contract_type": "ERC721",
        "item_metadata": {
            "description": "Zerion DNA is a first of a kind Dynamic NFT Avatar – a generative, living NFT that evolves over time to reflect your digital identity. Every wallet action renders unique attributes so that no two NFTs are alike. Wallet actions that will cause the NFT to evolve include buying and selling tokens, interacting with different networks and exploring the Zerion app.\n\nTo claim your DNA, create a Zerion Wallet via our Zerion iOS and Android apps.",
            "image": "https://zerion-dna.s3.us-east-1.amazonaws.com/onepointo/6b4635cd5a4ab32f1e3e66afc38815cdb2816e07.png",
            "external_url": null,
            "attributes": [
                {
                    "value": "Yes",
                    "trait_type": "Primary"
                },
                {
                    "value": "0 weeks",
                    "trait_type": "Age"
                },
                {
                    "value": "$0–$50",
                    "trait_type": "Gas Spend"
                },
                {
                    "value": "0",
                    "trait_type": "Transactions"
                },
                {
                    "value": "$0–$100",
                    "trait_type": "Balance"
                },
                {
                    "value": "0",
                    "trait_type": "Assets"
                },
                {
                    "value": "-",
                    "trait_type": "Favorite Network"
                },
                {
                    "value": "Yes",
                    "trait_type": "Enabled"
                },
                {
                    "value": "Level 1",
                    "trait_type": "Body"
                }
            ],
            "item_name": "#126891",
            "item_url": "https://dna.zerion.io/api/v1/avatars/onepointo/126891",
            "animation_url": null
        },
        "item_id": "126891",
        "holder_address": "0xb0642076a64b270176cb92f73f4786daccc7d776",
        "block_height": 17510075
    },
    "error_code": null,
    "error_msg": null
}

Failed Response Sample

{
    "success": false,
    "data": null,
    "error_code": "CHAIN_NOT_SUPPORT",
    "error_msg": "The current chain is not supported temporarily"
}
PreviousQuery item info list by chain name and collection addressNextRefresh collection metadata

Last updated 1 year ago

Chain's name,support single chain's name.eg:eth,Ethereum.

😈
🐙
Enumeration