Skip to main content

Collections

tokenviewAbout 3 min

Collections

Get collection basic information

GET https://services.tokenview.io/nft/{lowercase-coin-abbr}/blockdata/collection/info/{collection_address}?apikey={apikey}

Parameters

Be sure to convert uppercase letters in address hashes or transaction hashes to lowercase.

Request

curl --location https://services.tokenview.io/nft/eth/blockdata/collection/info/0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b?apikey={apikey}

Response

{
    "code": 1,
    "msg": "成功",
    "data": {
        "logo": "https://openseauserdata.com/files/cd9eea1b2d6cfc8f8de4ab92fbd01e42.png",
        "twitterSite": "https://twitter.com/MEGAMINFT",
        "webSite": "https://megami.io/",
        "network": "ETH",
        "tokenHash": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
        "creator": "0x2c846fe59f8cdb757352def5f6dfa9d83e7ae19e",
        "tokenInfo": {
            "h": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
            "p": "ETH",
            "f": "MEGAMI",
            "s": "MEGAMI",
            "d": "0",
            "t": "9552",
            "c": "RC721"
        }
    }
}

Response Description

  • logo: collection logo link
  • twitterSite: collection twitter link
  • webSite: collection web site link
  • network: chain abbreviation uppercase
  • tokenHash: collection contract address
  • creator: collection contract creator
  • tokenInfo:
    • h: collection address
    • p: chain abbreviation uppercase
    • f: collection full name
    • s: collection short name
    • d: tokenDecimal (minimum number of digits to split)
    • t: totalSupply (this field of RC1155 will return 0)
    • c: contract type (RC721/RC1155)

Get transactions by collection

GET https://services.tokenview.io/nft/{chain_abbreviation_lowercase}/blockdata/collection/tokentrans/{collection_address}/{page}/{page_size}?apikey={apikey}

Parameters

the returned transaction list is in DESC order by time.

  • {lowercase-coin-abbr}: eth,bsc
  • {collection_address}: the collection address you inquired
  • {page}: page number
  • {page_size}: amount of data returned on one page
  • {apikey}: Get your activated apikey from the API system: https://services.tokenview.ioopen in new window
Be sure to convert uppercase letters in address hashes or transaction hashes to lowercase.

Request

curl --location https://services.tokenview.io/nft/eth/blockdata/collection/tokentrans/0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b/1/10?apikey={apikey}

Response

{
    "code": 1,
    "msg": "成功",
    "data": {
        "page": 1,
        "size": 10,
        "total": 19524,
        "data": [
            {
                "blockNo": 15313258,
                "collectionAddr": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
                "collectionSymbol": "MEGAMI",
                "time": 1660119642,
                "txid": "0xebd5a9ce1615a0b2ab8c12c8345dfb2cb705569e885b32fefaeed9a6b441cf29",
                "tokenInfo": {
                    "h": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
                    "f": "MEGAMI",
                    "s": "MEGAMI",
                    "d": "0",
                    "c": "RC721"
                },
                "from": "0xbe688d7f960703a983c61bad18a4f11506517484",
                "to": "0x75e3b35e7c9b75604f928ceacc7a57eb350e8456",
                "nftId": "1989",
                "contractType": "1"
            },
            {
                "blockNo": 15313248,
                "collectionAddr": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
                "collectionSymbol": "MEGAMI",
                "time": 1660119561,
                "txid": "0x151d8819c5be79e13338dd62ad93dd505d8aa442b97404447e1451ee5726dacf",
                "tokenInfo": {
                    "h": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
                    "f": "MEGAMI",
                    "s": "MEGAMI",
                    "d": "0",
                    "c": "RC721"
                },
                "from": "0xb15017533209c0a5e02356ef3e07f136cfd26a16",
                "to": "0xcb6e7bdfd5bba62bbdc487facc347637297cfda8",
                "nftId": "3543",
                "contractType": "1"
            },
            {
                "blockNo": 15313247,
                "collectionAddr": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
                "collectionSymbol": "MEGAMI",
                "time": 1660119535,
                "txid": "0x0aa9cee8e3d46996d90af5764ef58acf10f4f70964fed43d3c41b1394e7888af",
                "tokenInfo": {
                    "h": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
                    "f": "MEGAMI",
                    "s": "MEGAMI",
                    "d": "0",
                    "c": "RC721"
                },
                "from": "0xbf980f9f516b767558c5de280ea7ce069302f74c",
                "to": "0xa71fc441e15c104e87db88347587b993c0c974b4",
                "nftId": "1435",
                "contractType": "1"
            },
            {
                "blockNo": 15313210,
                "collectionAddr": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
                "collectionSymbol": "MEGAMI",
                "time": 1660119045,
                "txid": "0x1c1bd0e33a0df1a93df2b3a08d55ea9442b577b46a8f68e5feef118b116e3c70",
                "tokenInfo": {
                    "h": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
                    "f": "MEGAMI",
                    "s": "MEGAMI",
                    "d": "0",
                    "c": "RC721"
                },
                "from": "0x31a6d0ea27db941257024189a3718472d40ef663",
                "to": "0xbf980f9f516b767558c5de280ea7ce069302f74c",
                "nftId": "1560",
                "contractType": "1"
            },
            {
                "blockNo": 15313210,
                "collectionAddr": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
                "collectionSymbol": "MEGAMI",
                "time": 1660119045,
                "txid": "0x1c1bd0e33a0df1a93df2b3a08d55ea9442b577b46a8f68e5feef118b116e3c70",
                "tokenInfo": {
                    "h": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
                    "f": "MEGAMI",
                    "s": "MEGAMI",
                    "d": "0",
                    "c": "RC721"
                },
                "from": "0x31a6d0ea27db941257024189a3718472d40ef663",
                "to": "0xbf980f9f516b767558c5de280ea7ce069302f74c",
                "nftId": "2895",
                "contractType": "1"
            },
            {
                "blockNo": 15313210,
                "collectionAddr": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
                "collectionSymbol": "MEGAMI",
                "time": 1660119045,
                "txid": "0x1c1bd0e33a0df1a93df2b3a08d55ea9442b577b46a8f68e5feef118b116e3c70",
                "tokenInfo": {
                    "h": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
                    "f": "MEGAMI",
                    "s": "MEGAMI",
                    "d": "0",
                    "c": "RC721"
                },
                "from": "0x31a6d0ea27db941257024189a3718472d40ef663",
                "to": "0xbf980f9f516b767558c5de280ea7ce069302f74c",
                "nftId": "1936",
                "contractType": "1"
            },
            {
                "blockNo": 15313210,
                "collectionAddr": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
                "collectionSymbol": "MEGAMI",
                "time": 1660119045,
                "txid": "0x1c1bd0e33a0df1a93df2b3a08d55ea9442b577b46a8f68e5feef118b116e3c70",
                "tokenInfo": {
                    "h": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
                    "f": "MEGAMI",
                    "s": "MEGAMI",
                    "d": "0",
                    "c": "RC721"
                },
                "from": "0x31a6d0ea27db941257024189a3718472d40ef663",
                "to": "0xbf980f9f516b767558c5de280ea7ce069302f74c",
                "nftId": "763",
                "contractType": "1"
            },
            {
                "blockNo": 15313199,
                "collectionAddr": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
                "collectionSymbol": "MEGAMI",
                "time": 1660118923,
                "txid": "0xf2920dcbb1b8076922d77d7f06dfeb4f05c995b89bb12cdb8985ab57e1325505",
                "tokenInfo": {
                    "h": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
                    "f": "MEGAMI",
                    "s": "MEGAMI",
                    "d": "0",
                    "c": "RC721"
                },
                "from": "0x04ac00a8b428575ef8ead6c691f98b000b8d854d",
                "to": "0xbf980f9f516b767558c5de280ea7ce069302f74c",
                "nftId": "4934",
                "contractType": "1"
            },
            {
                "blockNo": 15313179,
                "collectionAddr": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
                "collectionSymbol": "MEGAMI",
                "time": 1660118682,
                "txid": "0x90feef749282b8ff5672812ff65010ff18a688ed4f710f98b8a6f90ba4d9224a",
                "tokenInfo": {
                    "h": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
                    "f": "MEGAMI",
                    "s": "MEGAMI",
                    "d": "0",
                    "c": "RC721"
                },
                "from": "0x5fdd5e373e26ef0884b178948bff26fbf66a07c1",
                "to": "0xbe688d7f960703a983c61bad18a4f11506517484",
                "nftId": "5130",
                "contractType": "1"
            },
            {
                "blockNo": 15313169,
                "collectionAddr": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
                "collectionSymbol": "MEGAMI",
                "time": 1660118509,
                "txid": "0xcb498f8b9317f7859390967c61b22c2ddab9fc75be291bb37a354cfbae168895",
                "tokenInfo": {
                    "h": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
                    "f": "MEGAMI",
                    "s": "MEGAMI",
                    "d": "0",
                    "c": "RC721"
                },
                "from": "0x33d90a0efef8500daef5f371f96165bef548fc6c",
                "to": "0xbf980f9f516b767558c5de280ea7ce069302f74c",
                "nftId": "2440",
                "contractType": "1"
            }
        ]
    }
}

Response Description

  • blockNo: block number
  • collectionAddr: collection address
  • collectionSymbol: collection short name
  • time: timestamp of this block number
  • txid: transcation hash
  • tokenInfo:
    • h: collection address
    • f: collection full name
    • s: collectionSymbol
    • d: tokenDecimals
    • c: contract type (RC721/RC1155)
  • from: from address of transfer
  • to: to address of transfer
  • nftId: nft id
  • contractType: contract type(1:RC721; 2:RC1155)
  • amount: number of nfts transferred (this field is returned when the query collection is of type RC1155)

Get all NFTIDs by collection

GET https://services.tokenview.io/nft/{chain_abbreviation_lowercase}/blockdata/collection/nfts/{collection_address}/{page}/{page_size}?apikey={apikey}

Parameters

  • {lowercase-coin-abbr}: such as eth,bsc
  • {collection_address}: the collection address you inquired
  • {page}: 1,2,3,......50 (Max)
  • {page_size}: 1,2,3,......50 (Max)
  • {apikey}: Get your activated apikey from the API system: https://services.tokenview.ioopen in new window
Be sure to convert uppercase letters in address hashes or transaction hashes to lowercase.

If the access speed of ipfs.io is not satisfactory when accessing ipfs resources, please replace it with another ipfs gateway domain name

Request

curl --location https://services.tokenview.io/nft/eth/blockdata/collection/nfts/0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b/1/1?apikey={apikey}

Response

{
    "code": 1,
    "msg": "成功",
    "data": {
        "page": 1,
        "size": 1,
        "total": 9697,
        "data": [
            {
                "contractAddress": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
                "contractName": "MEGAMI",
                "contractTotalSupply": "9552",
                "nftId": "1",
                "owner": "0xec1bb4d8fcc604999af6f4cd0703dec629e79f53",
                "creator": "0x2c846fe59f8cdb757352def5f6dfa9d83e7ae19e",
                "imageUrl": "https://ipfs.io/ipfs/QmZF9jMdNj2dwZJP2WdbeU4AVfc7K1ZhY9wbC14e3BDZi4/00001.png",
                "metaJson": "{\"image\":\"ipfs://QmZF9jMdNj2dwZJP2WdbeU4AVfc7K1ZhY9wbC14e3BDZi4/00001.png\",\"external_url\":\"https://mint.megami.io/?id=1\",\"name\":\"Megami #00001\",\"description\":\"Naoki Saito's 1/1 quality as an NFT collectible.  \\nThis is the concept of MEGAMI.  \\nYour own Megami, not for anyone else.  \\nThe Megami of your choice will empower you.  \\nFind your own personal Megami and rediscover your own value.\",\"attributes\":[{\"value\":\"Origin\",\"trait_type\":\"GenerativeType\"},{\"value\":\"Schoolgirl\",\"trait_type\":\"OriginName\"},{\"value\":\"Zephyr\",\"trait_type\":\"Effect\"},{\"value\":\"Vivid Heart\",\"trait_type\":\"PowerSource\"},{\"value\":\"Deity Hairpin\",\"trait_type\":\"HeadAccessory\"},{\"value\":\"Charcoal Schoolgirl Cut\",\"trait_type\":\"HairStyle\"},{\"value\":\"Sailor School Uniform\",\"trait_type\":\"Clothes\"},{\"value\":\"Schoolgirl\",\"trait_type\":\"FaceType\"},{\"value\":\"Rosy\",\"trait_type\":\"SkinTone\"},{\"value\":\"Circle\",\"trait_type\":\"HandSign\"},{\"value\":\"Wings of Hope\",\"trait_type\":\"Wings\"},{\"value\":\"Hope\",\"trait_type\":\"Halo\"},{\"value\":\"Ring of Hope\",\"trait_type\":\"BackgroundEffect\"},{\"value\":\"Light of Hope\",\"trait_type\":\"Background\"}]}",
                "tokenUri": "ipfs://QmQMdt64iGaCFR1RCN9yRL2eFbWeizPwEdVKbfH9aSayFt/1.json"
            }
        ]
    }
}

Response Description

  • page: page number
  • size: amount of data returned on one page
  • total: total number of data
  • data:
    • contractAddress: contract address
    • contractName: contract name
    • contractTotalSupply: total supply of nft in this collection
    • nftId: nftId
    • owner: holder of the nftId
    • creator: contract creator
    • imageUrl: nft image link
    • metaJson:metadata json
    • tokenUri: metadata link
Last update: