未确认交易
大约 4 分钟
未确认交易
Pending Pool 信息
GET
https://services.tokenview.io/vipapi/pendingstat/{公链简称小写}?apikey={apikey}
参数
- {公链简称小写}: BTC系列如btc,ltc,doge 等;
- {apikey}: 可在Tokenview API 后台管理系统获取激活状态的 APIKEY: https://services.tokenview.io
Request
curl --location https://services.tokenview.io/vipapi/pendingstat/btc?apikey={apikey}
Response
{
"code": 1,
"msg": "成功",
"data": {
"bestGasPrice": "273488197",
"totalCnt": 4245,
"minGasPrice": "100000000",
"totalSentValue": "403.823851911631256720",
"totalFee": "8.272538731340059391",
"totalCallTransferCnt": 0,
"totalTokenTransferCnt": 78
}
}
应答字段说明
{
"code": 1,
"msg": "成功",
"data": {
"bestGasPrice": "273488197", // 最佳gas价格
"totalCnt": 4245, // 未确认交易笔数
"minGasPrice": "100000000", // 最小gas价格
"totalSentValue": "403.823851911631256720", // 总交易额
"totalFee": "8.272538731340059391", // 总手续费
"totalCallTransferCnt": 0, // 总合约交易笔数
"totalTokenTransferCnt": 78 // 总Token交易笔数
}
}
公链未确认交易列表
GET
https://services.tokenview.io/vipapi/pending/{公链简称小写}/{页码}/{每页交易条数}?apikey={apikey}
参数
- {公链简称小写}: BTC系列如btc,ltc,doge 等;
- {页码}:1,2,3,... 50,最多50页;
- {每页交易条数}:1,2,3...50,每页交易条数,最多50条;
- {apikey}: 可在Tokenview API 后台管理系统获取激活状态的 APIKEY: https://services.tokenview.io
Request
curl --location https://services.tokenview.io/vipapi/pending/btc/1/10?apikey={apikey}
Response
{
"code": 1,
"msg": "成功",
"data": {
"page": 1,
"size": 10,
"total": 1306087,
"data": [
{
"type": "tx",
"network": "BTC",
"time": 1666604663,
"txid": "eb7c4402c10591b21865f08d13e3e88d5ec0a82cf1ed77cbbe5140042dd7f9c4",
"fee": "0.00001424",
"inputs": [
{
"input_no": 0,
"address": "bc1qqx9z2zqk0606j37v7wqxr833640r35a7a5h6pm",
"value": "0.01810596"
},
{
"input_no": 1,
"address": "bc1qqx9z2zqk0606j37v7wqxr833640r35a7a5h6pm",
"value": "0.00211238"
}
],
"outputs": [
{
"output_no": 0,
"address": "bc1qnatqdnpj7gykv5n4ctnpdzd3u5akzwtp4ts0kv",
"value": "0.0202041"
}
],
"inputCnt": 2,
"outputCnt": 1
},
{
"type": "tx",
"network": "BTC",
"time": 1666604663,
"txid": "c9e2fec70eef3bc5d3595e7a164b32bc04375e83219994856394ed889e21baab",
"fee": "0.0000169",
"inputs": [
{
"input_no": 0,
"address": "14Fs4NYsuYZsYAubbZFLFHLEjgUTNCxvUk",
"value": "0.73009676",
"received_from": {
"output_no": 1,
"txid": "d480acc30bed9dbea619e33a95b84318e2abe9118dccdf719caf09147eef5258"
}
}
],
"outputs": [
{
"output_no": 0,
"address": "1KQX9qQKBRd1PJ3ksJrEDuPfbwhmNYhKev",
"value": "0.10019002"
},
{
"output_no": 1,
"address": "14Fs4NYsuYZsYAubbZFLFHLEjgUTNCxvUk",
"value": "0.62988984"
}
],
"inputCnt": 1,
"outputCnt": 2
},
{
"type": "tx",
"network": "BTC",
"time": 1666604663,
"txid": "ad91a6d6480309310e74dbe9a14aa6cf8b4acd559e87cca86a105687bcc86f51",
"fee": "0.00001009",
"inputs": [
{
"input_no": 0,
"address": "3FaZtK631KvPqssFSLLmpWLnHExZWJReAD",
"value": "0.0810589"
}
],
"outputs": [
{
"output_no": 0,
"address": "3NtSMwivYHVmNu4AiSxwPJ2bsUPhe69v4t",
"value": "0.01551401"
},
{
"output_no": 1,
"address": "3PhHU3CxDYQbPoHff6sqZfhjkt4DmRRYbP",
"value": "0.0655348"
}
],
"inputCnt": 1,
"outputCnt": 2
},
{
"type": "tx",
"network": "BTC",
"time": 1666604663,
"txid": "917da8cd97f98d8ad86c0f4758c628bd50212ef1b14ec7d4458b2d3e0623a615",
"fee": "0.00002617",
"inputs": [
{
"input_no": 0,
"address": "bc1qer6qepgnvgzxx5hrgpghp89vvqaps9st20nw9w",
"value": "0.02764533"
}
],
"outputs": [
{
"output_no": 0,
"address": "bc1qgzynhc4d4hu3l628fe9l6cj0ru5zv35ysmjlty",
"value": "0.02412799"
},
{
"output_no": 1,
"address": "1PEb3E835itBR2rhaDiczYAREkm7gMqGtc",
"value": "0.00010335"
},
{
"output_no": 2,
"address": "1BwEfdZ4DmBvuUdCRQ5biRiuMZJFWr1vot",
"value": "0.00338782"
}
],
"inputCnt": 1,
"outputCnt": 3
},
{
"type": "tx",
"network": "BTC",
"time": 1666604663,
"txid": "77ca253b878995ae662fc6dc0892df526fe81830e3b0a048cb7fac3b50ebeb76",
"fee": "0.000036",
"inputs": [
{
"input_no": 0,
"address": "3PUSdQVAC4MNHz9FzQLpCK1MCCkSNvERjr",
"value": "0.00234113"
},
{
"input_no": 1,
"address": "3PUSdQVAC4MNHz9FzQLpCK1MCCkSNvERjr",
"value": "0.0055"
}
],
"outputs": [
{
"output_no": 0,
"address": "3MokaUgANx7wRkEUeBYEiE1VvZ8kkZVmUF",
"value": "0.0001"
},
{
"output_no": 1,
"address": "bc1qas6xmplm20rcvxrap07szm8thhpp99q6nkwmtl",
"value": "0.0041"
},
{
"output_no": 2,
"address": "3PUSdQVAC4MNHz9FzQLpCK1MCCkSNvERjr",
"value": "0.00360513"
}
],
"inputCnt": 2,
"outputCnt": 3
},
{
"type": "tx",
"network": "BTC",
"time": 1666604663,
"txid": "742e2375040fca976ba7f07cc6eaf167ffd89be4cfba974d434c65605164e52a",
"fee": "0.00004102",
"inputs": [
{
"input_no": 0,
"address": "bc1q3m6a5j7hc6vt9ugt9q83v8dp7ekdz7clxlngyw",
"value": "0.00357593"
},
{
"input_no": 1,
"address": "bc1q3m6a5j7hc6vt9ugt9q83v8dp7ekdz7clxlngyw",
"value": "0.00648312"
},
{
"input_no": 2,
"address": "bc1q3m6a5j7hc6vt9ugt9q83v8dp7ekdz7clxlngyw",
"value": "0.01024907"
}
],
"outputs": [
{
"output_no": 0,
"address": "3LELGgxqKLyYrsJTW9UhyDBxZ3y5R3BVih",
"value": "0.01808218"
},
{
"output_no": 1,
"address": "bc1q3m6a5j7hc6vt9ugt9q83v8dp7ekdz7clxlngyw",
"value": "0.00218492"
}
],
"inputCnt": 3,
"outputCnt": 2
},
{
"type": "tx",
"network": "BTC",
"time": 1666604663,
"txid": "58a76c877696e685ffc4e7734c3c4fc620844338d9a34b18e83fbee9d2a43189",
"fee": "0.00004087",
"inputs": [
{
"input_no": 0,
"address": "bc1q2e6cxx6hfpw8nc9ecvz3e29ly3tc6n043kwftm",
"value": "0.00199208"
},
{
"input_no": 1,
"address": "bc1q2e6cxx6hfpw8nc9ecvz3e29ly3tc6n043kwftm",
"value": "0.00150927"
},
{
"input_no": 2,
"address": "bc1q2e6cxx6hfpw8nc9ecvz3e29ly3tc6n043kwftm",
"value": "0.00197108"
}
],
"outputs": [
{
"output_no": 0,
"address": "bc1q5y0p3qa59lffp07kfyajveytlskysjt60y5p2a",
"value": "0.00516756"
},
{
"output_no": 1,
"address": "bc1q2e6cxx6hfpw8nc9ecvz3e29ly3tc6n043kwftm",
"value": "0.000264"
}
],
"inputCnt": 3,
"outputCnt": 2
},
{
"type": "tx",
"network": "BTC",
"time": 1666604663,
"txid": "1a92ef834379ebf50ee1899ce9e46f36aca29cb2a5eb8cd3fe516e5d981b6d27",
"fee": "0.00005087",
"inputs": [
{
"input_no": 0,
"address": "bc1qk3e6vcucw72dnrr6z904fp5u4nzt3gvmnwp70k",
"value": "0.00026084"
},
{
"input_no": 1,
"address": "bc1qk3e6vcucw72dnrr6z904fp5u4nzt3gvmnwp70k",
"value": "0.00104336"
},
{
"input_no": 2,
"address": "bc1qjrmcylzjzgwxwla66e8tp0ecy7h40jtdstdjyx",
"value": "0.00675"
},
{
"input_no": 3,
"address": "bc1qmc5dr5s8l5kssqsrghtv6uk6m74wkmfa6ar9xs",
"value": "0.00408376"
}
],
"outputs": [
{
"output_no": 0,
"address": "bc1qmc5dr5s8l5kssqsrghtv6uk6m74wkmfa6ar9xs",
"value": "0.00208709"
},
{
"output_no": 1,
"address": "bc1qwqcggp5ra8w44sq50pt3zvwuzs496yzc0jzemn",
"value": "0.01"
}
],
"inputCnt": 4,
"outputCnt": 2
},
{
"type": "tx",
"network": "BTC",
"time": 1666604663,
"txid": "111977859a5abeed2b15cdf415feb81475bd86b8a8e85e4b5a554902b1dea6e3",
"fee": "0.000022",
"inputs": [
{
"input_no": 0,
"address": "3Fz46WVn6DWTyDe8wveyCyaMj3vfw87VWR",
"value": "0.7788971"
}
],
"outputs": [
{
"output_no": 0,
"address": "bc1qd3uj2q33efup4r7mgretkq0c9xdzksqcfm5t8v",
"value": "0.01771864"
},
{
"output_no": 1,
"address": "37Z6neB2wDC3hsPDHLy2n2kFahNNU3eos8",
"value": "0.38057368"
},
{
"output_no": 2,
"address": "3N8r2L2GZdyhMQJZi3ztydCn2DyBzAcv9h",
"value": "0.38058278"
}
],
"inputCnt": 1,
"outputCnt": 3
},
{
"type": "tx",
"network": "BTC",
"time": 1666604663,
"txid": "0f626ee2a5960fe483205a1c5a9ff7329abd8033f9edc4db8e640a9e9b74c380",
"fee": "0.00001255",
"inputs": [
{
"input_no": 0,
"address": "38LEZCMPJzB2mpMrWWiAp7HZ7PN3eTLQ6d",
"value": "0.00236359"
},
{
"input_no": 1,
"address": "3H5Zy45fhpDHBnL6eGM3pYGQunLc8VhvWw",
"value": "0.26239598"
}
],
"outputs": [
{
"output_no": 0,
"address": "bc1qrygsucqmcswhzn6a662gn0jhgd2hcy5c6vhejn",
"value": "0.0387578"
},
{
"output_no": 1,
"address": "3F4YdHqki5NWoC7bXRQoUXYAUNTf2QHf9E",
"value": "0.22598922"
}
],
"inputCnt": 2,
"outputCnt": 2
}
],
"note": "{\"totalSentValue\": 2723.67410614, \"totalCnt\": 881, \"totalFee\": 0.03419224, \"totalSize\": 4950282869, \"mediumTxByte\": 234, \"bestTxFee\": 1.17e-05, \"minTxFee\": 2.34e-06, \"maxTxFee\": 0.00084474}"
}
}
地址的未确认交易列表
GET
https://services.tokenview.io/vipapi/pending/ntx/{公链简称小写}/{地址}?apikey={apikey}
参数
- {公链简称小写}: BTC系列如btc,ltc,doge 等;
- {地址}:BTC系列链上地址;
- {apikey}: 可在Tokenview API 后台管理系统获取激活状态的 APIKEY: https://services.tokenview.io
Request
curl --location https://services.tokenview.io/vipapi/pending/ntx/usdt/3CW2KSXnee2Ybu4fhhAbWePdesiXyiaexG?apikey={apikey}
Response
{
"code": 1,
"msg": "成功",
"data": [
{
"type": "tx",
"network": "USDT",
"time": 1670565045,
"txid": "fae41ea02e232ae3da246d139122ec1c00ead411b27cc4ff0b02f3c255e31550",
"fee": "0.00000334",
"inputs": [
{
"address": "3CW2KSXnee2Ybu4fhhAbWePdesiXyiaexG",
"value": "1.00000000"
}
],
"outputs": [
{
"address": "1LHsV9agntdLrCYZawuMbMHhpQTMBBFYhg",
"value": "1.00000000"
}
],
"inputCnt": 1,
"outputCnt": 1,
"type_int": 0,
"type_str": "Simple Send"
}
]
}
判断交易是否未确认
GET
https://services.tokenview.io/vipapi/pending/{公链简称小写}/{交易哈希}?apikey={apikey}
参数
- {公链简称小写}: BTC系列如btc,ltc,doge 等;
- {交易哈希}:BTC系列链上交易ID;
- {apikey}: 可在Tokenview API 后台管理系统获取激活状态的 APIKEY: https://services.tokenview.io
Request
curl --location https://services.tokenview.io/vipapi/pending/usdt/fae41ea02e232ae3da246d139122ec1c00ead411b27cc4ff0b02f3c255e31550?apikey={apikey}
Response
{
"code": 1,
"msg": "成功",
"data": {
"type": "tx",
"network": "USDT",
"time": 1670565045,
"txid": "fae41ea02e232ae3da246d139122ec1c00ead411b27cc4ff0b02f3c255e31550",
"fee": "0.00000334",
"inputs": [
{
"address": "3CW2KSXnee2Ybu4fhhAbWePdesiXyiaexG",
"value": "1.00000000"
}
],
"outputs": [
{
"address": "1LHsV9agntdLrCYZawuMbMHhpQTMBBFYhg",
"value": "1.00000000"
}
],
"inputCnt": 1,
"outputCnt": 1,
"type_int": 0,
"type_str": "Simple Send"
}
}
应答字段说明
1. 待确认交易:交易还等待打包,还没有进入到区块链里。如果返回404,说明待确认队列里,没有这笔交易,交易已成功或失败。
2. 如果该交易在待确认队列里,应答如下(因为还没打包,所以块高未知):
{
"code": 1,
"msg": "成功",
"data": {
"type": "tx",
"network": "USDT",
"time": 1670565045,
"txid": "fae41ea02e232ae3da246d139122ec1c00ead411b27cc4ff0b02f3c255e31550",
"fee": "0.00000334", // 该交易的手续费(此例单位BTC)
"inputs": [ // inputs里是转出币的地址列表
{
"address": "3CW2KSXnee2Ybu4fhhAbWePdesiXyiaexG", // 地址hash
"value": "1.00000000" // 转出的数量(此例的单位是USDT)
}
],
"outputs": [
{
"address": "1LHsV9agntdLrCYZawuMbMHhpQTMBBFYhg", // 地址hash
"value": "1.00000000" // 收到的数量(此例的单位是USDT)
}
],
"inputCnt": 1,
"outputCnt": 1,
"type_int": 0, // 交易类型代号
"type_str": "Simple Send" // 交易类型,普通转账
}
}