跳至主要內容

集合

tokenview大约 4 分钟

集合

获取 Contract 基本信息

GET https://services.tokenview.io/nft/{公链简称小写}/blockdata/collection/info/{collection_address}?apikey={apikey}

参数

请务必将地址HASH或交易HASH中的大写字母转化为小写字母。

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"
        }
    }
}

应答字段说明

  • logo: nft集合的logo图片链接
  • twitterSite: 该集合的twitter主页链接
  • webSite: 该集合的网站主页链接
  • network: 公链简称大写
  • tokenHash: 查询的nft集合的合约地址
  • creator: 合约创建者
  • tokenInfo: 合约信息
    • h: 查询的nft集合的合约地址
    • p: 公链简称大写
    • f: 合约名
    • s: 集合简称
    • d: tokenDecimal 分割的最小位数
    • t: totalSupply 总供应量 (RC1155 该字段为 0)
    • c: nft类型 (RC721/RC1155)

获取 Contract 交易列表

GET https://services.tokenview.io/nft/{公链简称小写}/blockdata/collection/tokentrans/{collection_address}/{页码}/{每页条数}?apikey={apikey}

参数

  • {公链简称小写}: eth,bsc
  • {collection_address}: 查询的nft集合的合约地址
  • {页码}: 页码
  • {每页条数}: 一页返回的数据数量
  • {apikey}: 可在Tokenview API 后台管理系统获取激活状态的 APIKEY: https://services.tokenview.ioopen in new window

请务必将地址HASH或交易HASH中的大写字母转化为小写字母。

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"
            }
        ]
    }
}

应答字段说明

返回列表按时间线倒序排序。

  • blockNo: 区块
  • collectionAddr: collection合约地址
  • collectionSymbol: collection的简称
  • time: 区块时间戳
  • txid: 交易hash
  • tokenInfo: 合约信息:
    • h: collection合约地址
    • f: collection合约名称
    • s: tokenSymbol
    • d: tokenDecimals
    • c: nft类型(RC721/RC1155)
  • from: nft转移的from地址
  • to: nft转移的to地址
  • nftId: nft的id
  • contractType: nft类型(1:RC721; 2:RC1155)
  • amount: 转移的个数 (查询集合为RC1155类型时返回该字段)

获取 Contract 所有 NFTID 列表

GET https://services.tokenview.io/nft/{公链简称小写}/blockdata/collection/nfts/{collection_address}/{页码}/{每页条数}?apikey={apikey}

参数

  • {公链简称小写}: eth,bsc
  • {collection_address}: 查询的nft集合的合约地址
  • {页码}: 1,2,3,... 50,最多50页;
  • {每页条数}: 1,2,3...50,最多50条。
  • {apikey}: 可在Tokenview API 后台管理系统获取激活状态的 APIKEY: https://services.tokenview.ioopen in new window

请务必将地址HASH或交易HASH中的大写字母转化为小写字母。

如果访问ipfs资源时ipfs.io访问速度不尽人意,请自行替换成其他ipfs的网关域名

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"
            }
        ]
    }
}

应答字段说明

  • page: 页码
  • size: 一页返回的数据量
  • total: 总数据量
  • data: nft信息
    • contractAddress: 合约地址
    • contractName: 合约名称
    • contractTotalSupply: 总供应量
    • nftId: nftId
    • owner: nftId的拥有者
    • creator: nft合约创建者
    • imageUrl: 缩略图url
    • metaJson:nftid的元数据json
    • tokenUri: 元数据json访问链接
上次编辑于: