跳至主要內容

NFTIDs

tokenview大约 4 分钟

NFTIDs

获取 Contract 上指定 NFTID 的交易列表

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

参数

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

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

Request

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

Response

{
    "code": 1,
    "msg": "成功",
    "data": {
        "page": 1,
        "size": 10,
        "total": 4,
        "data": [
            {
                "blockNo": 15224075,
                "collectionAddr": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
                "collectionSymbol": "MEGAMI",
                "time": 1658918687,
                "txid": "0xcbc9a6113626dc49c5be48ea525433d2bf69dee410940770716d71aa4123e89b",
                "tokenInfo": {
                    "h": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
                    "f": "MEGAMI",
                    "s": "MEGAMI",
                    "d": "0",
                    "c": "RC721"
                },
                "from": "0x825035e9a485e9829abf826e6456a89042fdad04",
                "to": "0x451a63c803787464740e60e8559e42dec2f8010f",
                "nftId": "101",
                "contractType": "1"
            },
            {
                "blockNo": 15223123,
                "collectionAddr": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
                "collectionSymbol": "MEGAMI",
                "time": 1658906820,
                "txid": "0xf4627b288fb98f7e2b4e971b58b7b23dc7d028afccdb5c54f7d06523fff7ffa9",
                "tokenInfo": {
                    "h": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
                    "f": "MEGAMI",
                    "s": "MEGAMI",
                    "d": "0",
                    "c": "RC721"
                },
                "from": "0x26063b9a9f284dcb2f509519b7b2b956a1c2b32e",
                "to": "0x825035e9a485e9829abf826e6456a89042fdad04",
                "nftId": "101",
                "contractType": "1"
            },
            {
                "blockNo": 15151731,
                "collectionAddr": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
                "collectionSymbol": "MEGAMI",
                "time": 1657947807,
                "txid": "0x1ec0e24ef643662af45a4e6e98f4d0699219cf6b9f245a93bcb8b5f0b10ab8ac",
                "tokenInfo": {
                    "h": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
                    "f": "MEGAMI",
                    "s": "MEGAMI",
                    "d": "0",
                    "c": "RC721"
                },
                "from": "0x3385d594ecda0736b7dc92c5a5a384a3289eca21",
                "to": "0x26063b9a9f284dcb2f509519b7b2b956a1c2b32e",
                "nftId": "101",
                "contractType": "1"
            },
            {
                "blockNo": 15151703,
                "collectionAddr": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
                "collectionSymbol": "MEGAMI",
                "time": 1657947461,
                "txid": "0xb7e92974bb5086387c6e43f1d7ad0b8ecfc7a02c07b7e21fe128b8dfd834be85",
                "tokenInfo": {
                    "h": "0xce6e3a14b5f8ce2b05af0f117dc922769779aa3b",
                    "f": "MEGAMI",
                    "s": "MEGAMI",
                    "d": "0",
                    "c": "RC721"
                },
                "from": "0x0000000000000000000000000000000000000000",
                "to": "0x3385d594ecda0736b7dc92c5a5a384a3289eca21",
                "nftId": "101",
                "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/nfts/tokentranscnt/{collection_address}/{nft_id}?apikey={apikey}

参数

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

Request

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

Response

{
    "code": 1,
    "msg": "成功",
    "data": 4
}

应答字段说明

  • data: 该nftid的交易总次数

获取 Contract 上指定 NFTID 的当前Holders

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

参数

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

Request

curl --location https://services.tokenview.io/nft/eth/blockdata/nfts/holder/0xf1f3ca6268f330fda08418db12171c3173ee39c9/26?apikey={apikey}

Response

{
    "code": 1,
    "msg": "成功",
    "data": [
        {
            "owner": "0x000000000a38444e0a6e37d3b630d7e855a7cb13",
            "nftId": "26",
            "date": "2021-12-08",
            "amount": "1"
        },
        {
            "owner": "0x000000064730640b7d670408d74280924883064f",
            "nftId": "26",
            "date": "2021-12-31",
            "amount": "1"
        },
        {
            "owner": "0x00000009d94baf057697d988d2e3eec2fce81162",
            "nftId": "26",
            "date": "2022-07-17",
            "amount": "1"
        }
    ]
}

应答字段说明

  • owner: 持有者钱包地址
  • nftId: 持有的nftId
  • date: 数据更新时间
  • amount: 持有的数量

获取 Contract 上指定 NFTID 的当前Holders总数

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

参数

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

Request

curl --location https://services.tokenview.io/nft/eth/blockdata/nfts/holdercnt/0xf1f3ca6268f330fda08418db12171c3173ee39c9/26?apikey={apikey}

Response

{
    "code": 1,
    "msg": "成功",
    "data": 18
}

应答字段说明

  • data: 该nftid的holder总数

获取 Contract 上指定 NFTID 的详情

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

参数

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

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

Request

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

Response

{
    "code": 1,
    "msg": "成功",
    "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"
    }
}

应答字段说明

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