跳至主要內容

地址

tokenview大约 14 分钟

地址

以太坊地址代表一个帐户。通常以”0x"开头,如 0x71C7656EC7ab88b098defB751B7401B5f6d8976F。

以太坊账户分类两种:外部账户和合约账户。外部账户被公钥-私钥对控制(人类),合约账户(contract accounts),由智能合约的代码控制。

地址详情

GET https://services.tokenview.io/vipapi/{公链简称小写}/address/{地址}?apikey={apikey}

参数

如果该地址没有代币交易,则返回 404,无数据。
备注:

调用ETH接口时,请务必将地址hash或交易hash中的大写字母转化成小写字母。


Request

curl --location https://services.tokenview.io/vipapi/eth/address/0x05c5d1b89d0d4b5bddb424c991db94557977c01c?apikey={apikey}

Response

{
    "code": 1,
    "msg": "成功",
    "data": {
        "type": "address",
        "network": "ETH",
        "hash": "0x05c5d1b89d0d4b5bddb424c991db94557977c01c",
        "spend": "-1.431",
        "receive": "1.431",
        "balance": "0",
        "normalTxCount": 7,
        "txs": [
            {
                "type": "tx",
                "network": "ETH",
                "block_no": 11591718,
                "height": 11591718,
                "index": 39,
                "time": 1609812446,
                "txid": "0x36678697a83c52f09d99d9ac49d72082a9c7ea25000257e16891aa69cde1e42b",
                "fee": "0.005691",
                "confirmations": 469322,
                "from": "0x05c5d1b89d0d4b5bddb424c991db94557977c01c",
                "to": "0xe1f1c9f5a32f8684452f18dddb19ca220b081039",
                "nonce": 2,
                "gasPrice": 271000000000,
                "gasLimit": 21000,
                "value": "0.222663",
                "gasUsed": 21000
            },
            {
                "type": "tx",
                "network": "ETH",
                "block_no": 10557739,
                "height": 10557739,
                "index": 160,
                "time": 1596068943,
                "txid": "0xd4b710f13e79370620a2313706b6adc74a2ecaa9e42eb6c86dc91f53c80d03bb",
                "fee": "0.000956466928473",
                "confirmations": 1503301,
                "from": "0x60ec215fbc0afbeb980b26d8df24225ee0c3d1b1",
                "to": "0x05c5d1b89d0d4b5bddb424c991db94557977c01c",
                "nonce": 306,
                "gasPrice": 45546044213,
                "gasLimit": 21000,
                "value": "0.2",
                "gasUsed": 21000
            },
            {
                "type": "tx",
                "network": "ETH",
                "block_no": 10539804,
                "height": 10539804,
                "index": 139,
                "time": 1595829028,
                "txid": "0x0e8cb5072a74eba7bd24a49dabfced6aac5bec767057cd58b091b26e9c44ec3b",
                "fee": "0.001848",
                "confirmations": 1521236,
                "from": "0x05c5d1b89d0d4b5bddb424c991db94557977c01c",
                "to": "0x7a8e88e8f4f6dfaf8599479d727b96057ac9b9f0",
                "nonce": 1,
                "gasPrice": 88000000000,
                "gasLimit": 21000,
                "value": "0.2",
                "gasUsed": 21000
            },
            {
                "type": "tx",
                "network": "ETH",
                "block_no": 10493267,
                "height": 10493267,
                "index": 147,
                "time": 1595206015,
                "txid": "0xb4f88b1b1d4aae9eb37823ca1bf39706bfaebe3235565e96af7eafe99d2f5aed",
                "fee": "0.000966",
                "confirmations": 1567773,
                "from": "0xddf6c769f0d95c2f6d8bc013f507d43bb4928ff3",
                "to": "0x05c5d1b89d0d4b5bddb424c991db94557977c01c",
                "nonce": 174,
                "gasPrice": 46000000000,
                "gasLimit": 90000,
                "value": "0.2",
                "gasUsed": 21000
            },
            {
                "type": "tx",
                "network": "ETH",
                "block_no": 10431093,
                "height": 10431093,
                "index": 192,
                "time": 1594375391,
                "txid": "0x8422e975199aa1bc66a292e133b42b239be33ffeaf6e492bd8b8edfcec208c77",
                "fee": "0.000798",
                "confirmations": 1629947,
                "from": "0x05c5d1b89d0d4b5bddb424c991db94557977c01c",
                "to": "0xf315ebc518650fb4e297d39c913eecc724fbd162",
                "nonce": 0,
                "gasPrice": 38000000000,
                "gasLimit": 21000,
                "value": "1",
                "gasUsed": 21000
            },
            {
                "type": "tx",
                "network": "ETH",
                "block_no": 10431086,
                "height": 10431086,
                "index": 178,
                "time": 1594375299,
                "txid": "0x079fddc5b7ccc164b32bac2973e1c1e22d82341d96fc5b636235aa9906dfb8db",
                "fee": "0.000819",
                "confirmations": 1629954,
                "from": "0x904486de5e829f10427ffbda26d70a94e0512df8",
                "to": "0x05c5d1b89d0d4b5bddb424c991db94557977c01c",
                "nonce": 16,
                "gasPrice": 39000000000,
                "gasLimit": 21000,
                "value": "0.7",
                "gasUsed": 21000
            },
            {
                "type": "tx",
                "network": "ETH",
                "block_no": 10431071,
                "height": 10431071,
                "index": 71,
                "time": 1594375047,
                "txid": "0x35c938a28798f1dfd3d493b316525e7e80c95cb6f9d5b2f716935fc519a5f091",
                "fee": "0.000861000030639",
                "confirmations": 1629969,
                "from": "0x2d2fa090e3a0893a545b83b97e3801003b229b38",
                "to": "0x05c5d1b89d0d4b5bddb424c991db94557977c01c",
                "nonce": 198,
                "gasPrice": 41000001459,
                "gasLimit": 21000,
                "value": "0.331",
                "gasUsed": 21000
            }
        ],
        "addressType": "normal",
        "nonce": 2
    }
}

地址余额

GET https://services.tokenview.io/vipapi/addr/b/{公链简称小写}/{地址}?apikey={apikey}

参数

备注:

调用ETH接口时,请务必将地址hash或交易hash中的大写字母转化成小写字母。


Request

curl --location https://services.tokenview.io/vipapi/addr/b/eth/0x9af168dcab9184561fdd9065812ec89d83e08d99?apikey={apikey}

Response

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

地址Token余额列表

GET https://services.tokenview.io/vipapi/{公链简称小写}/address/tokenbalance/{地址}?apikey={apikey}

参数

  • {公链简称小写}: eth, bsc, kcs, movr
  • {地址}:ETH 系列链上地址;
  • {apikey}: 可在Tokenview API 后台管理系统获取激活状态的 APIKEY: https://services.tokenview.io
备注:
  • 调用ETH接口时,请务必将地址hash或交易hash中的大写字母转化成小写字母。
  • 该接口不适用于 ERC721/ERC1155 代币。
代币符号:
  • "h": 代币hash地址 hash地址
  • "f": 代币全称 fullname
  • "s": 代币单位符号 symbol
  • "d": 代币精度 decimals
如果该地址没有代币余额,则返回404,无数据。

如果该地址下的token类型为 ERC721 或 ERC1155,请移步使用 NFT API 获取详情。

Request

curl --location https://services.tokenview.io/vipapi/eth/address/tokenbalance/0xf12b926a2ce452a4fdbbeec3c3d04e776104dbc4?apikey={apikey}

Response

{
    "code": 1,
    "msg": "成功",
    "enMsg": "SUCCESS",
    "data": [
        {
            "network": "ETH",
            "hash": "0xd83c7fdf9d76dec865a0501016439344b6a938f1",
            "tokenInfo": {
                "h": "0xd83c7fdf9d76dec865a0501016439344b6a938f1",
                "f": "PMAI",
                "s": "PMAI",
                "d": "18"
            },
            "transferCnt": 1,
            "balance": "2000000000000000000",
            "spendTransferCnt": 0,
            "receiveTransferCnt": 1
        },
        {
            "network": "ETH",
            "hash": "0xbb057b406adfbf0930d71f8bac0413132e30bbc3",
            "tokenInfo": {
                "h": "0xbb057b406adfbf0930d71f8bac0413132e30bbc3",
                "f": "SBX",
                "s": "SBX",
                "d": "18"
            },
            "transferCnt": 1,
            "balance": "2000000000000000000",
            "spendTransferCnt": 0,
            "receiveTransferCnt": 1
        },
        {
            "network": "ETH",
            "hash": "0x5cfd2f9c803b363f240988fea1424e38d09ac155",
            "tokenInfo": {
                "h": "0x5cfd2f9c803b363f240988fea1424e38d09ac155",
                "f": "CAI",
                "s": "CAI",
                "d": "18"
            },
            "transferCnt": 1,
            "balance": "2000000000000000000",
            "spendTransferCnt": 0,
            "receiveTransferCnt": 1
        },
        {
            "network": "ETH",
            "hash": "0xfa6d07fb903fe51f1a3a6357791f1de49deeb2e3",
            "tokenInfo": {
                "h": "0xfa6d07fb903fe51f1a3a6357791f1de49deeb2e3",
                "f": "INX",
                "s": "INX",
                "d": "18"
            },
            "transferCnt": 1,
            "balance": "2000000000000000000",
            "spendTransferCnt": 0,
            "receiveTransferCnt": 1
        },
        {
            "network": "ETH",
            "hash": "0x6114b3a7cc3e891e2f7ded71e98430a91700d7ea",
            "tokenInfo": {
                "h": "0x6114b3a7cc3e891e2f7ded71e98430a91700d7ea",
                "f": "FOMO",
                "s": "FOMO",
                "d": "18"
            },
            "transferCnt": 1,
            "balance": "2000000000000000000",
            "spendTransferCnt": 0,
            "receiveTransferCnt": 1
        }
    ]
}

地址在指定块上发生的Token交易列表

GET https://services.tokenview.io/vipapi/{公链简称小写}/address/tokentx/{地址hash}/{Token-hash}/{页码}/{每页交易条数}?apikey={apikey}&starblock={startblock}&endblock={endblock}

参数

  • {公链简称小写}: eth, bsc
  • {地址hash}:ETH 系列链上地址hash;
  • {Token-hash}:ETH 系列链上Token地址hash,该参数为必填参数,可以设置为"all"或者token的hash,其他为错误参数;
  • {页码}:1,2,3,... 50,最多50页;
  • {每页交易条数}:1,2,3...50,每页交易条数,最多50条。
  • {startblock}:公链区块块高,默认0;
  • {endblock}:公链区块块高,默认1。注意:目前在使用中请务必赋值为startblock+1,其他为错误参数;
  • {apikey}: 可在Tokenview API 后台管理系统获取激活状态的 APIKEY: https://services.tokenview.io
备注:
  • 调用ETH接口时,请务必将地址hash或交易hash中的大写字母转化成小写字母。
  • 该接口不适用于 ERC721/ERC1155 代币。
代币符号:
  • "h": 代币hash地址 hash地址
  • "f": 代币全称 fullname
  • "s": 代币单位符号 symbol
  • "d": 代币精度 decimals
如果该地址在指定块上没有代币交易,则返回404,无数据。

Request

curl --location https://services.tokenview.io/vipapi/eth/address/tokentx/0xf12b926a2ce452a4fdbbeec3c3d04e776104dbc4/all/1/5?apikey={apikey}&startblock=23280227&endblock=23280228

Response

{
    "code": 1,
    "msg": "成功",
    "enMsg": "SUCCESS",
    "data": [
        {
            "index": 82,
            "block_no": 23280227,
            "token": "0xbb057b406adfbf0930d71f8bac0413132e30bbc3",
            "tokenAddr": "0xbb057b406adfbf0930d71f8bac0413132e30bbc3",
            "tokenSymbol": "SBX",
            "tokenDecimals": "18",
            "time": 1756874075,
            "txid": "0xd44cf638cdeebc20def85a37333fad1bcfd6e5f286961bfe9a6267f50a340fbb",
            "tokenInfo": {
                "h": "0xbb057b406adfbf0930d71f8bac0413132e30bbc3",
                "f": "SBX",
                "s": "SBX",
                "d": "18"
            },
            "from": "0xbb057b406adfbf0930d71f8bac0413132e30bbc3",
            "to": "0xf12b926a2ce452a4fdbbeec3c3d04e776104dbc4",
            "fromAlias": "SBX",
            "value": "2000000000000000000",
            "fromIsContract": 1,
            "functionName": "0x729ad39e"
        }
    ]
}

Request

curl --location https://services.tokenview.io/vipapi/eth/address/tokentx/0xf12b926a2ce452a4fdbbeec3c3d04e776104dbc4/0xbb057b406adfbf0930d71f8bac0413132e30bbc3/1/5?apikey={apikey}&startblock=23280227&endblock=23280228

Response

{
    "code": 1,
    "msg": "成功",
    "enMsg": "SUCCESS",
    "data": [
        {
            "index": 82,
            "block_no": 23280227,
            "token": "0xbb057b406adfbf0930d71f8bac0413132e30bbc3",
            "tokenAddr": "0xbb057b406adfbf0930d71f8bac0413132e30bbc3",
            "tokenSymbol": "SBX",
            "tokenDecimals": "18",
            "time": 1756874075,
            "txid": "0xd44cf638cdeebc20def85a37333fad1bcfd6e5f286961bfe9a6267f50a340fbb",
            "tokenInfo": {
                "h": "0xbb057b406adfbf0930d71f8bac0413132e30bbc3",
                "f": "SBX",
                "s": "SBX",
                "d": "18"
            },
            "from": "0xbb057b406adfbf0930d71f8bac0413132e30bbc3",
            "to": "0xf12b926a2ce452a4fdbbeec3c3d04e776104dbc4",
            "fromAlias": "SBX",
            "value": "2000000000000000000",
            "fromIsContract": 1,
            "functionName": "0x729ad39e"
        }
    ]
}

地址持有的指定Token的余额

GET https://services.tokenview.io/vipapi/{公链简称小写}/address/tokenbalance/{地址hash}/{Token-hash}?apikey={apikey}

参数

  • {公链简称小写} : eth, bsc, kcs, movr
  • {地址hash}: ETH 系列链上地址
  • {Token-hash}: ETH 系列链上Token地址
  • {apikey}: 可在Tokenview API 后台管理系统获取激活状态的 APIKEY: https://services.tokenview.ioopen in new window

备注

  • 调用接口时,请务必将地址hash中的大写字母转化成小写字母。
  • 该接口不适用于 ERC721/ERC1155 代币。ERC721/ERC1155相关接口请参考 NFT APIsopen in new window

Request

curl --location https://services.tokenview.io/vipapi/eth/address/tokenbalance/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2/0x57b9d10157f66d8c00a815b5e289a152dedbe7ed?apikey={apikey}

Response

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

应答字段说明

{
    "code": 1,
    "msg": "成功",
    "data": "1019.5842" // balance: 已经处理过Decimal
}

地址交易列表

GET https://services.tokenview.io/vipapi/{公链简称小写}/address/normal/{地址}/{页码}/{每页交易条数}?apikey={apikey}

参数

  • {公链简称小写}: eth, bsc, kcs, movr
  • {地址}:ETH 系列链上地址;
  • {页码}:1,2,3,... 50,最多50页;
  • {每页交易条数}:1,2,3...50,每页交易条数,最多50条。
  • {apikey}: 可在Tokenview API 后台管理系统获取激活状态的 APIKEY: https://services.tokenview.ioopen in new window
备注:

调用ETH接口时,请务必将地址hash或交易hash中的大写字母转化成小写字母。

Request

curl --location https://services.tokenview.io/vipapi/eth/address/normal/0x58b6a8a3302369daec383334672404ee733ab239/1/1?apikey={apikey}

Response

{
    "code": 1,
    "msg": "成功",
    "data": [
        {
            "type": "tx",
            "network": "ETH",
            "block_no": 12061430,
            "height": 12061430,
            "index": 101,
            "time": 1616054551,
            "txid": "0x74834a3479b6e0f6d3ab1023b2b516baaebf9c136b5ee83d3113a310b5937b9f",
            "fee": "0.0080657451",
            "confirmations": 4,
            "from": "0x75e89d5979e4f6fba9f97c104c2f0afb3f1dcb88",
            "fromAlias": "MXC",
            "to": "0x58b6a8a3302369daec383334672404ee733ab239",
            "toAlias": "Livepeer Token",
            "nonce": 1034334,
            "toIsContract": 1,
            "gasPrice": 153900000000,
            "gasLimit": 52409,
            "value": "0",
            "gasUsed": 52409,
            "tokenTransfer": [
                {
                    "index": 101,
                    "token": "0x58b6a8a3302369daec383334672404ee733ab239",
                    "tokenAddr": "0x58b6a8a3302369daec383334672404ee733ab239",
                    "tokenSymbol": "LPT",
                    "tokenDecimals": "18",
                    "tokenInfo": {
                        "h": "0x58b6a8a3302369daec383334672404ee733ab239",
                        "f": "Livepeer Token",
                        "s": "LPT",
                        "d": "18"
                    },
                    "from": "0x75e89d5979e4f6fba9f97c104c2f0afb3f1dcb88",
                    "to": "0x168ff90f1f51ecd5a2459dc6a732cf6ebbb66c9f",
                    "fromAlias": "MXC",
                    "value": "1299800000000000000000"
                }
            ]
        }   
    ]
}

应答字段说明

"data": [
{
    "type": "tx",        // 返回的记录类型:交易transaction
    "network": "ETH",    // 公链符号
    "block_no": 9296272, // 区块高度
    "height": 9296272,   // 区块高度deprecated
    "index": 141,        // 此交易在区块里位置索引
    "time": 1579231507,  // 区块生成时间UTC
    "txid": "0x99ad94a572e8b12b95f559dfe0385ea3821fd8e276671a8862dc3d4d485ca867",   // 此交易的hash
    "fee": "0.000224526",// 交易的手续费(单位ETH)
    "confirmations": 188,// 确认数
    "from": "0x476a64bfc50541cedb4154a84c67632b25b0c300", // 发起交易的地址hash(如果是转账:就是转出地址;如果是调用合约:就是调用合约的发起方的地址)
    "to": "0x58b6a8a3302369daec383334672404ee733ab239", // 被动交易的地址hash(如果是转账:就是转入地址;如果是调用合约:就是被调用合约的地址)
    "toAlias": "Livepeer Token", // to地址的别名
    "nonce": 6,          // 交易的nonce
    "toIsContract": 1,   // 如果出现该字段,表示to地址是合约地址
    "gasPrice": 6000000000, // gas价格(单位Wei)
    "gasLimit": 300000,  // gas最大使用量
    "value": "0",        // 转账的金额(单位ETH)
    "gasUsed": 37421,    // 实际的gas使用量(单位Wei)
    "traceErr":"Out of gas", // 错误消息,如果出现traceErr字段,表示交易失败
    "receiptErr":"reverted", // 错误消息,如果出现receiptErr字段,表示交易失败
    "error":"xxxxx",  // 错误消息,如果出现error字段,表示交易失败
    "tokenTransfer": [   // 如果出现此tokenTransfer字段,表示此交易里包含了代币转账
        {
            "index": 141, // 此交易在区块里位置索引
            "token": "0x58b6a8a3302369daec383334672404ee733ab239", // 代币名称或者hash地址
            "tokenAddr": "0x58b6a8a3302369daec383334672404ee733ab239", // 代币的hash地址
            "tokenSymbol": "LPT",// 代币符号symbol
            "tokenDecimals": "18", // 代币精度
            "tokenInfo": {       
                "h": "0x58b6a8a3302369daec383334672404ee733ab239", // 代币hash地址
                "f": "Livepeer Token", //代币全称 name
                "s": "LPT", // 代币符号 symbol
                "d": "18"   // 代币精度 decimals
            },
            "from":   // 转出代币的地址 "0x476a64bfc50541cedb4154a84c67632b25b0c300",
            "to": "0xf4f08ecfeebcdf5a0845fdbe4d8afea71ef38aa2", // 接收代币的地址
            "value": "2075683957459207235" // 转账金额(单位是代币),需要除以10的decimals次方才是真实数字
        }
    ],
    "callTransfer": [ // 如果出现此callTransfer字段,表示此交易里包含了合约调用转账
    {
        "index": 21, // 此交易在区块里位置索引
        "fromIsContract": 1, // 如果出现此字段,表示from是一个合约地址
        "from": "0x3dae53ee778a324bd317bd270d6227406b6bd4ed", // 转出地址
        "to": "0xe828273d4de447079b610bdde4fe22f3a21fe94c", // 转入地址
        "value": "0.212", // 转账金额(单位ETH)
        "gasUsed": 0, // gas实际使用量(单位Wei)
        "gasLimit": 2300 // gas最大使用量
    }
]
}
]

地址Token交易列表

GET https://services.tokenview.io/vipapi/{公链简称小写}/address/tokentrans/{地址}/{代币地址}/{页码}/{每页交易条数}?apikey={apikey}

参数

  • {公链简称小写}: eth, bsc, kcs, movr
  • {地址}:ETH 系列链上地址;
  • {代币地址}:代币Token的合约地址。如 USDT-ERC20:0xdac17f958d2ee523a2206206994597c13d831ec7
  • {页码}:1,2,3,... 50,最多50页;
  • {每页交易条数}:1,2,3...50,每页交易条数,最多50条。
  • {apikey}: 可在Tokenview API 后台管理系统获取激活状态的 APIKEY: https://services.tokenview.io
备注:

调用ETH接口时,请务必将地址hash或交易hash中的大写字母转化成小写字母。

如果该地址没有代币交易,则返回404,无数据。

Request

curl --location https://services.tokenview.io/vipapi/eth/address/tokentrans/0x6bccd9664ac9ca942d1ce7ae92d22cb98c63db7c/0xdac17f958d2ee523a2206206994597c13d831ec7/1/50?apikey={apikey}

Response

{
    "code": 1,
    "msg": "成功",
    "data": [
        {
            "index": 126,
            "block_no": 9285925,
            "token": "0xdac17f958d2ee523a2206206994597c13d831ec7",
            "tokenAddr": "0xdac17f958d2ee523a2206206994597c13d831ec7",
            "tokenSymbol": "USDT",
            "tokenDecimals": "6",
            "time": 1579094101,
            "txid": "0x3ae0ba32fd729c8902c3cf3b17bcca211527eaa2c0780c42a8e392ac401ba137",
            "tokenInfo": {
                "h": "0xdac17f958d2ee523a2206206994597c13d831ec7",
                "f": "Tether USD",
                "s": "USDT",
                "d": "6"
            },
            "from": "0x6bccd9664ac9ca942d1ce7ae92d22cb98c63db7c",
            "to": "0xcf3618d4680817af786a1d93465a19ab4225e69e",
            "value": "219772901",
            "conformations": 2853969
        },
        {
            "index": 4,
            "block_no": 9230936,
            "token": "0xdac17f958d2ee523a2206206994597c13d831ec7",
            "tokenAddr": "0xdac17f958d2ee523a2206206994597c13d831ec7",
            "tokenSymbol": "USDT",
            "tokenDecimals": "6",
            "time": 1578366375,
            "txid": "0x367b88344ee283dbe5c8ed7cbca23be39788daf2446962451e6e6f75a959106c",
            "tokenInfo": {
                "h": "0xdac17f958d2ee523a2206206994597c13d831ec7",
                "f": "Tether USD",
                "s": "USDT",
                "d": "6"
            },
            "from": "0x46705dfff24256421a05d056c29e81bdc09723b8",
            "to": "0x6bccd9664ac9ca942d1ce7ae92d22cb98c63db7c",
            "value": "219772904",
            "conformations": 2908958
        }
    ]
}

应答字段说明

"data": [
{
    "block_no": 9296272, // 区块高度
    "index": 141,        // 此交易在区块里位置索引
    "time": 1579231507,  // 区块生成时间UTC
    "txid": "0x99ad94a572e8b12b95f559dfe0385ea3821fd8e276671a8862dc3d4d485ca867",   // 此交易的hash
    "confirmations": 188,// 确认数
    "toAlias": "Livepeer Token", // to地址的别名
    "nonce": 6,          // 交易的nonce
    "toIsContract": 1,   // 如果出现该字段,表示to地址是合约地址
    "token": "0x58b6a8a3302369daec383334672404ee733ab239", // 代币名称或者hash地址
    "tokenAddr": "0x58b6a8a3302369daec383334672404ee733ab239", // 代币的hash地址
    "tokenSymbol": "LPT",// 代币符号symbol
    "tokenDecimals": "18", // 代币精度
    "tokenInfo": {       
        "h": "0x58b6a8a3302369daec383334672404ee733ab239", // 代币hash地址
        "f": "Livepeer Token", //代币全称 name
        "s": "LPT", // 代币符号 symbol
        "d": "18"   // 代币精度 decimals
    },
    "from":   // 转出代币的地址 "0x476a64bfc50541cedb4154a84c67632b25b0c300",
    "to": "0xf4f08ecfeebcdf5a0845fdbe4d8afea71ef38aa2", // 接收代币的地址
    "value": "2075683957459207235" // 转账金额(单位是代币),需要除以10的decimals次方才是真实数字
}
]

地址合约调用交易列表

GET https://services.tokenview.io/vipapi/{公链简称小写}/address/calltrans/{address}/{页码}/{每页条数}?apikey={apikey}

参数

  • {公链简称小写}: eth, bsc, kcs, movr
  • {address}: eth系列链上地址
  • {页码}:1,2,3,... 50,最多50页;
  • {每页交易条数}:1,2,3...50,每页交易条数,最多50条。
  • {apikey}: 可在Tokenview API 后台管理系统获取激活状态的 APIKEY: https://services.tokenview.io
备注:

调用ETH接口时,请务必将地址hash或交易hash中的大写字母转化成小写字母。

Request

curl --location https://services.tokenview.io/vipapi/eth/address/calltrans/0x63a9975ba31b0b9626b34300f7f627147df1f526/1/5?apikey={apikey}

Response

{
    "code": 1,
    "msg": "成功",
    "data": [
        {
            "block_no": 1921789,
            "txid": "0xf61427fe3bf28a0004838ca42ec58599ee469bb021165a2b50d6f989d8e58262",
            "time": 1469048995,
            "index": 12,
            "fromIsContract": 1,
            "from": "0xbf4ed7b27f1d666546e30d74d50d173d20bca754",
            "to": "0x63a9975ba31b0b9626b34300f7f627147df1f526",
            "value": "2.172856991304347826",
            "gasUsed": 0,
            "gasLimit": 2300,
            "conformations": 10218106
        }
    ]
}

应答字段说明

"data": [
{
    "block_no": 1921789,
    "txid": "0xf61427fe3bf28a0004838ca42ec58599ee469bb021165a2b50d6f989d8e58262",
    "time": 1469048995,
    "index": 12,
    "fromIsContract": 1,
    "from": "0xbf4ed7b27f1d666546e30d74d50d173d20bca754",
    "to": "0x63a9975ba31b0b9626b34300f7f627147df1f526",
    "value": "2.172856991304347826",
    "gasUsed": 0,
    "gasLimit": 2300,
    "conformations": 7800103
}
]

地址第一笔入金

GET https://services.tokenview.io/vipapi/firsttx/{公链简称}/{地址}?apikey={apikey}

参数

备注:
  • 调用ETH接口时,请务必将地址hash或交易hash中的大写字母转化成小写字母。

  • 接口返回该地址第一笔入金交易发生的块高和时间,第一笔入金交易为以下三种中的一种:地址的首笔ETH入金,地址的首笔Token入金,地址的首笔合约调用入金。请参考”地址首笔ETH转入交易,地址首笔ETH转出交易,地址首笔Token转入交易,地址首笔Token转出交易,地址首笔合约调用交易,地址首笔合约转出交易,地址首笔Reward信息“获取更多信息。

Request

curl --location https://services.tokenview.io/vipapi/firsttx/eth/0x9c33eacc2f50e39940d3afaf2c7b8246b681a374?apikey={apikey}

Response

{
    "code": 1,
    "msg": "成功",
    "data": {
        "block": 10000650,
        "time": 1588607324
    }
}

应答字段说明

"data": {
    "block": 10000650, // 首次交易的区块高度
    "time": 1588607324 // 首次交易的UTC时间
  }

地址首笔ETH转入交易

GET https://services.tokenview.io/vipapi/eth/address/firsttx/normal/{地址}/received?apikey={apikey}

参数

备注

调用ETH接口时,请务必将地址hash中的大写字母转化成小写字母。

Request

curl --location https://services.tokenview.io/vipapi/eth/address/firsttx/normal/0xe6469b813a4d8bf1c129c6d03bc7801e204b5521/received?apikey={apikey}

Response

{
    "code": 1,
    "msg": "成功",
    "data": {
        "type": "tx",
        "network": "ETH",
        "block_no": 19155181,
        "height": 19155181,
        "blockHash": "0xea93e84293bdd3ca715faed1d850d8952ad4890f1b02295906d6a0621894db37",
        "index": 13,
        "time": 1707052535,
        "txid": "0x3e5f92fc00f830e4e9834fc762f305989ae34909845f59a8a0f7c1205765e1fe"
    }
}

地址首笔ETH转出交易

GET https://services.tokenview.io/vipapi/eth/address/firsttx/normal/{地址}/sent?apikey={apikey}

参数

备注

调用ETH接口时,请务必将地址hash中的大写字母转化成小写字母。

Request

curl --location https://services.tokenview.io/vipapi/eth/address/firsttx/normal/0xe6469b813a4d8bf1c129c6d03bc7801e204b5521/sent?apikey={apikey}

Response

{
    "code": 1,
    "msg": "成功",
    "data": {
        "type": "tx",
        "network": "ETH",
        "block_no": 19155184,
        "height": 19155184,
        "blockHash": "0x207010ebdbc8b7ba04194f9a7a28b74f9bc1cc6beb4a318012e41c1ea4b84189",
        "index": 11,
        "time": 1707052571,
        "txid": "0x0d0c586beb7131c7061799b9b194e5b4029ffad35fbf9ce2049af9f24bae69b3"
    }
}

地址首笔Token转入交易

GET https://services.tokenview.io/vipapi/eth/address/firsttx/token/{地址}/{Token地址}/received?apikey={apikey}

参数

备注

调用ETH接口时,请务必将地址hash中的大写字母转化成小写字母。

Request

curl --location https://services.tokenview.io/vipapi/eth/address/firsttx/token/0xe6469b813a4d8bf1c129c6d03bc7801e204b5521/0xf411903cbc70a74d22900a5de66a2dda66507255/received?apikey={apikey}

Response

{
    "code": 1,
    "msg": "成功",
    "data": {
        "type": "tx",
        "network": "ETH",
        "block_no": 19155100,
        "height": 19155100,
        "blockHash": "0x31d355b60b4db991ec4d6a5c82c9f5224eab7d5a2c4b529fc9fb0e8938b52f56",
        "index": 8,
        "time": 1707051563,
        "txid": "0x4874ddea25dad5c6183ea2da43790adc4b52a42a8f99c65324d4a26cf727b7ab"
    }
}

地址首笔Token转出交易

GET https://services.tokenview.io/vipapi/eth/address/firsttx/token/{地址}/{Token地址}/sent?apikey={apikey}

参数

备注:

调用ETH接口时,请务必将地址hash中的大写字母转化成小写字母。

Request

curl --location https://services.tokenview.io/vipapi/eth/address/firsttx/token/0xe6469b813a4d8bf1c129c6d03bc7801e204b5521/0xf411903cbc70a74d22900a5de66a2dda66507255/sent?apikey={apikey}

Response

{
    "code": 1,
    "msg": "成功",
    "data": {
        "type": "tx",
        "network": "ETH",
        "block_no": 19155184,
        "height": 19155184,
        "blockHash": "0x207010ebdbc8b7ba04194f9a7a28b74f9bc1cc6beb4a318012e41c1ea4b84189",
        "index": 11,
        "time": 1707052571,
        "txid": "0x0d0c586beb7131c7061799b9b194e5b4029ffad35fbf9ce2049af9f24bae69b3"
    }
}

地址首笔合约调用交易

GET https://services.tokenview.io/vipapi/eth/address/firsttx/call/{地址}/received?apikey={apikey}

参数

备注

调用ETH接口时,请务必将地址hash中的大写字母转化成小写字母。

Request

curl --location https://services.tokenview.io/vipapi/eth/address/firsttx/call/0xdac17f958d2ee523a2206206994597c13d831ec7/received?apikey={apikey}

Response

{
    "code": 1,
    "msg": "成功",
    "data": {
        "type": "tx",
        "network": "ETH",
        "block_no": 4634748,
        "height": 4634748,
        "blockHash": "0x1420761dbff0321c42a4bda163af2d7500d723b0139a72267c009d0eedfa9e6f",
        "index": 64,
        "time": 1511829681,
        "txid": "0x2f1c5c2b44f771e942a8506148e256f94f1a464babc938ae0690c6e34cd79190"
    }
}

地址首笔合约转出交易

GET https://services.tokenview.io/vipapi/eth/address/firsttx/call/{地址}/sent?apikey={apikey}

参数

备注: 调用ETH接口时,请务必将地址hash中的大写字母转化成小写字母。

Request

curl --location https://services.tokenview.io/vipapi/eth/address/firsttx/call/0xe37ab64042edcbeb4e7953543f02f2de65e05733/sent?apikey={apikey}

Response

{
    "code": 404,
    "msg": "无数据"
}

地址首笔Reward信息

GET https://services.tokenview.io/vipapi/eth/address/firsttx/miner/{地址}/miner?apikey={apikey}

参数

备注:

调用ETH接口时,请务必将地址hash中的大写字母转化成小写字母。

Request

curl --location https://services.tokenview.io/vipapi/eth/address/firsttx/miner/0x7e2a2fa2a064f693f0a55c5639476d913ff12d05/miner?apikey={apikey}

Response

{
    "code": 1,
    "msg": "成功",
    "data": {
        "type": "block",
        "network": "ETH",
        "block_no": 17036873,
        "time": 1681366415,
        "fee": "0.014344669924900027",
        "blockhash": "0xa849648fecaa8f66288ed253fc2bc38cb5adb09c5d9265bf9d4620dd20ab4ab1",
        "reward": "0.014344669924900027",
        "size": 72298,
        "previous_blockhash": "0xe23a17e74e00bb96c8e39db8d096ea60f12914d718cd31bbf1ff70c85f6573ba",
        "confirmations": 2122927,
        "miner": "0x7e2a2fa2a064f693f0a55c5639476d913ff12d05",
        "merkleroot": "0xf26450b27edb74e42a32e0fec5f27bd6c41b51dccfb4b76b54f54d4dbc8411c3",
        "unclesReward": "0",
        "mixHash": "0x0829ae03387b5fefa31bcf468c9833f5ee268da9d46c607f66537de704d0286e",
        "gasLimit": 30000000,
        "lowestGasPrice": 23982267475,
        "gasUsed": 15797687,
        "nonce": "0x0000000000000000",
        "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
        "receiptsRoot": "0x53aa63a95d18568bd054c232781ac3d0c51e59be2328f34951c3be6949128d67",
        "callTxCnt": 35,
        "tokenTxCnt": 163,
        "sent_value": "36.314982332514101371",
        "extraData": "\u0603\u0001\u000b\u0005gethgo1.20.2linux(Hex:0xd883010b05846765746888676f312e32302e32856c696e7578)",
        "mining_difficulty": "0",
        "totalDifficulty": "58750003716598352816469",
        "txCnt": 215,
        "uncles": [],
        "baseFeePerGas": 23893907475,
        "burntFee": "0.377468471497010325"
    }
}

地址的待确认交易列表

GET https://services.tokenview.io/vipapi/pending/ntx/{公链小写简称}/{地址}?apikey={apikey}

参数

  • {公链简称小写}: eth, bsc, kcs, movr
  • {地址}:ETH 系列链上地址;
  • {apikey}: 可在Tokenview API 后台管理系统获取激活状态的 APIKEY: https://services.tokenview.io
备注:

调用ETH接口时,请务必将地址hash或交易hash中的大写字母转化成小写字母。

Request

curl --location https://services.tokenview.io/vipapi/pending/ntx/eth/0x4ba8b3c60b8b4c2e18dbaa9560633aabf8c8c832?apikey={apikey}

Response

{
    "code": 1,
    "msg": "成功",
    "data": [
        {
            "type": "tx",
            "network": "ETH",
            "time": 1670557069,
            "txid": "0x78369bec484d9add49315d39c4e8375bd6be72ae1fa314f47cea34e16a49b625",
            "fee": "0.0000273",
            "from": "0x4ba8b3c60b8b4c2e18dbaa9560633aabf8c8c832",
            "to": "0x947baed872d354556a14d43a435117854af7f7ad",
            "nonce": 1,
            "gasPrice": 1300000000,
            "gasLimit": 21000,
            "value": "0.0000996029976903",
            "gasUsed": 0
        }
    ]
}
上次编辑于: