🤍查询所有交易记录
简要描述
查询所有交易记录接口(官方的,有QPS限制,目前已知的是15个QPS)
请求URL
https://apiasia.tronscan.io:5566/api/transaction?sort=-timestamp&count=true&limit=20&start=0&address=TYPrKF2sevXuE86Xo3Y2mhFnjseiUcybny
请求方式
POST
参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
address | 是 | string | 查询的钱包地址 |
limit | 是 | string | 单词查询条数 |
start | 否 | string | 开始的条数位置 |
sort | 否 | string | 排序方式 |
返回示例
{
"total": 26,
"rangeTotal": 26,
"data": [
{
"total": 26,
"rangeTotal": 26,
"data": \[
{
"block": 40791539,
"hash": "ffea9302e47a7fc5511aee58f507a1bf7477f91f491ae66e39ec5505ba54dfe4",
"timestamp": 1652928168000,
"ownerAddress": "TYPrKF2sevXuE86Xo3Y2mhFnjseiUcybny",
"toAddressList": \[
"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t"
\],
"toAddress": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
"contractType": 31,
"confirmed": true,
"revert": false,
"contractData": {
"data": "a9059cbb000000000000000000000041f5fbe5e8725957174014dca1dc4fed54e970a2f80000000000000000000000000000000000000000000000000000000000989680",
"owner\_address": "TYPrKF2sevXuE86Xo3Y2mhFnjseiUcybny",
"contract\_address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t"
},
"SmartCalls": "",
"Events": "",
"id": "",
"data": "",
"fee": "",
"contractRet": "REVERT",
"result": "FAIL",
"amount": "0",
"cost": {
"net\_fee": 0,
"energy\_usage": 0,
"fee": 554120,
"energy\_fee": 554120,
"energy\_usage\_total": 1979,
"origin\_energy\_usage": 0,
"net\_usage": 345
},
"tokenInfo": {
"tokenId": "\_",
"tokenAbbr": "trx",
"tokenName": "trx",
"tokenDecimal": 6,
"tokenCanShow": 1,
"tokenType": "trc10",
"tokenLogo": "https://coin.top/production/logo/trx.png",
"tokenLevel": "2",
"vip": true
},
"tokenType": "trc10",
"trigger\_info": {
"method": "transfer(address \_to,uint256 \_value)",
"data": "a9059cbb000000000000000000000041f5fbe5e8725957174014dca1dc4fed54e970a2f80000000000000000000000000000000000000000000000000000000000989680",
"parameter": {
"\_value": "10000000",
"\_to": "TYPrKF2sevXuE86Xo3Y2mhFnjseiUcybny"
},
"methodName": "transfer",
"contract\_address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
"call\_value": 0
}
}
\],
"wholeChainTxCount": 3216646144,
"contractMap": {
"TYPrKF2sevXuE86Xo3Y2mhFnjseiUcybny": false,
"TGDsEr2cSRC98Zo9WnwNDik2Y5rdboPRvd": false,
"TDQpQzXntqM1d5dirPqfUe9rE6BYgqvEok": false,
"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t": true,
"TVLNeBgwfB9DvraN92mmWwNJsuV8Fgte4B": false,
"TNCmcTdyrYKMtmE1KU2itzeCX76jGm5Not": false
},
"contractInfo": {
"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t": {
"tag1": "USDT Token",
"tag1Url": "https://tron.network/usdt",
"name": "TetherToken",
"vip": true
}
}
}
三种数据的结构
TRC 10 的数据结构
{
"block": 40792787,
"hash": "02d4e70c4e55e56fec4f7f2c770817a54d7e6ceea48fcaeef6d5aaf817461b77",
"timestamp": 1652931912000,
"ownerAddress": "TGDsEr2cSRC98Zo9WnwNDik2Y5rdboPRvd",
"toAddressList": [
"TYPrKF2sevXuE86Xo3Y2mhFnjseiUcybny"
],
"toAddress": "TYPrKF2sevXuE86Xo3Y2mhFnjseiUcybny",
"contractType": 2,
"confirmed": true,
"revert": false,
"contractData": {
"amount": 1,
"asset_name": "1002992",
"owner_address": "TGDsEr2cSRC98Zo9WnwNDik2Y5rdboPRvd",
"to_address": "TYPrKF2sevXuE86Xo3Y2mhFnjseiUcybny",
"tokenInfo": {
"tokenId": "1002992",
"tokenAbbr": "GFNC",
"tokenName": "GrafenoCoin",
"tokenDecimal": 6,
"tokenCanShow": 1,
"tokenType": "trc10",
"tokenLogo": "https://coin.top/production/upload/logo/1002992.png?t=1588737735730",
"tokenLevel": "1",
"vip": false
}
},
"SmartCalls": "",
"Events": "",
"id": "",
"data": "",
"fee": "",
"contractRet": "SUCCESS",
"result": "SUCCESS",
"amount": "1",
"cost": {
"net_fee": 0,
"energy_usage": 0,
"fee": 0,
"energy_fee": 0,
"energy_usage_total": 0,
"origin_energy_usage": 0,
"net_usage": 279
},
"tokenInfo": {
"tokenId": "1002992",
"tokenAbbr": "GFNC",
"tokenName": "GrafenoCoin",
"tokenDecimal": 6,
"tokenCanShow": 1,
"tokenType": "trc10",
"tokenLogo": "https://coin.top/production/upload/logo/1002992.png?t=1588737735730",
"tokenLevel": "1",
"vip": false
},
"tokenType": "trc10"
}
TRX 的数据结构
{
"block": 40905028,
"hash": "6ee0ce2bc28ab99d2f95f76dbb954eb65d6b6f06e800653061757c735577d715",
"timestamp": 1653268890000,
"ownerAddress": "TYPrKF2sevXuE86Xo3Y2mhFnjseiUcybny",
"toAddressList": [
"TDQpQzXntqM1d5dirPqfUe9rE6BYgqvEok"
],
"toAddress": "TDQpQzXntqM1d5dirPqfUe9rE6BYgqvEok",
"contractType": 1,
"confirmed": true,
"revert": false,
"contractData": {
"amount": 1100000,
"owner_address": "TYPrKF2sevXuE86Xo3Y2mhFnjseiUcybny",
"to_address": "TDQpQzXntqM1d5dirPqfUe9rE6BYgqvEok"
},
"SmartCalls": "",
"Events": "",
"id": "",
"data": "",
"fee": "",
"contractRet": "SUCCESS",
"result": "SUCCESS",
"amount": "1100000",
"cost": {
"net_fee": 0,
"energy_usage": 0,
"fee": 0,
"energy_fee": 0,
"energy_usage_total": 0,
"origin_energy_usage": 0,
"net_usage": 267
},
"tokenInfo": {
"tokenId": "_",
"tokenAbbr": "trx",
"tokenName": "trx",
"tokenDecimal": 6,
"tokenCanShow": 1,
"tokenType": "trc10",
"tokenLogo": "https://coin.top/production/logo/trx.png",
"tokenLevel": "2",
"vip": true
},
"tokenType": "trc10"
}
下面是U的数据结构
{
"block": 41092839,
"hash": "8336064695a4bf9b92d369b1193d657b6062abe805278a98ce095e11cefff9e1",
"timestamp": 1653833010000,
"ownerAddress": "TLNCU7kRxUbhHQkaA3CjJ1bZRXmv9m3ztL",
"toAddressList": [
"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t"
],
"toAddress": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
"contractType": 31,
"confirmed": true,
"revert": false,
"contractData": {
"data": "a9059cbb000000000000000000000041f5fbe5e8725957174014dca1dc4fed54e970a2f800000000000000000000000000000000000000000000000000000000000f4241",
"owner_address": "TLNCU7kRxUbhHQkaA3CjJ1bZRXmv9m3ztL",
"contract_address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t"
},
"SmartCalls": "",
"Events": "",
"id": "",
"data": "",
"fee": "",
"contractRet": "SUCCESS",
"result": "SUCCESS",
"amount": "0",
"cost": {
"net_fee": 345000,
"energy_usage": 0,
"fee": 4441680,
"energy_fee": 4096680,
"energy_usage_total": 14631,
"origin_energy_usage": 0,
"net_usage": 0
},
"tokenInfo": {
"tokenId": "_",
"tokenAbbr": "trx",
"tokenName": "trx",
"tokenDecimal": 6,
"tokenCanShow": 1,
"tokenType": "trc10",
"tokenLogo": "https://coin.top/production/logo/trx.png",
"tokenLevel": "2",
"vip": true
},
"tokenType": "trc10",
"trigger_info": {
"method": "transfer(address _to,uint256 _value)",
"data": "a9059cbb000000000000000000000041f5fbe5e8725957174014dca1dc4fed54e970a2f800000000000000000000000000000000000000000000000000000000000f4241",
"parameter": {
"_value": "1000001",
"_to": "TYPrKF2sevXuE86Xo3Y2mhFnjseiUcybny"
},
"methodName": "transfer",
"contract_address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
"call_value": 0
}
}
Last updated