跳至主要內容

未确认交易

tokenview大约 3 分钟

未确认交易

Pending 交易池子信息

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

参数

Request

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

Response

{
    "code": 1,
    "msg": "成功",
    "data": {
        "bestGasPrice": "52800000000",
        "totalCnt": 195447,
        "minGasPrice": "1",
        "totalSentValue": "2955.590539442775370908",
        "totalFee": "173.908074713311960854",
        "maxGasPrice": "500000000000",
        "totalTokenTransferCnt": 1431,
        "totalCallTransferCnt": 0
    }
}

公链未确认交易列表

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

参数

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

Request

curl --location https://services.tokenview.io/vipapi/pending/eth/1/10?apikey={apikey}

Response

{
    "code": 1,
    "msg": "成功",
    "data": {
        "page": 1,
        "size": 10,
        "total": 185622,
        "data": [
            {
                "type": "tx",
                "network": "ETH",
                "time": 1670825690,
                "txid": "0xfcb55dd06e093783a288367f52d3323059a54ef782da658aca51e2bb6a83d8ae",
                "fee": "0.006777583469367942",
                "from": "0x1dfeeff1996a057a2c01f29cdd2cb466b2352b55",
                "to": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45",
                "nonce": 87,
                "gasPrice": 19346725211,
                "gasLimit": 350322,
                "value": "7.64864669948E-7",
                "gasUsed": 0
            },
            {
                "type": "tx",
                "network": "ETH",
                "time": 1670825690,
                "txid": "0xc0d465d35a6591139bdcd3ba6f392038dd7d252082000b800e5261deecb55b26",
                "fee": "0.001451449365504853",
                "from": "0xcdfac46730f3271d1baf9e096225229c98ef9d19",
                "to": "0x3819f64f282bf135d62168c1e513280daf905e06",
                "nonce": 264,
                "gasPrice": 19346725211,
                "gasLimit": 75023,
                "value": "0",
                "gasUsed": 0
            },
            {
                "type": "tx",
                "network": "ETH",
                "time": 1670825690,
                "txid": "0x1c3db0f9cbbfd19cf27fc8ef324994ec7fd4201c0ac3d1599cf948d0676eed3f",
                "fee": "0.00087875312",
                "from": "0xf90975f555c94a59396e586c631fac8d1145f676",
                "to": "0x1b3781e7f20f117510adca20f6f88c98dba94126",
                "nonce": 446,
                "gasPrice": 19040000000,
                "gasLimit": 46153,
                "value": "0",
                "gasUsed": 0
            },
            {
                "type": "tx",
                "network": "ETH",
                "time": 1670825689,
                "txid": "0xe47d4e3634594a7f5fdc233c2c81d6b113b76e58beb5041873a2a577e42d3bec",
                "fee": "0.021127056",
                "from": "0x21a31ee1afc51d94c2efccaa2092ad1028285549",
                "to": "0x7420b4b9a0110cdc71fb720908340c03f9bc03ec",
                "nonce": 5054540,
                "gasPrice": 102000000000,
                "gasLimit": 207128,
                "value": "0",
                "gasUsed": 0,
                "tokenTransfer": [
                    {
                        "token": "0x7420b4b9a0110cdc71fb720908340c03f9bc03ec",
                        "tokenAddr": "0x7420b4b9a0110cdc71fb720908340c03f9bc03ec",
                        "tokenSymbol": "JASMY",
                        "tokenDecimals": "18",
                        "time": 1670825689,
                        "txid": "0xe47d4e3634594a7f5fdc233c2c81d6b113b76e58beb5041873a2a577e42d3bec",
                        "tokenInfo": {
                            "h": "0x7420b4b9a0110cdc71fb720908340c03f9bc03ec",
                            "f": "JasmyCoin",
                            "s": "JASMY",
                            "d": "18"
                        },
                        "from": "0x21a31ee1afc51d94c2efccaa2092ad1028285549",
                        "to": "0xcc46c6c670d89cf7ea86d88b22d09ea159e187f0",
                        "value": "99193000000000000000000"
                    }
                ]
            },
            {
                "type": "tx",
                "network": "ETH",
                "time": 1670825689,
                "txid": "0xe02adcd32ef02268ee45baedae637df6221f88e3dc392eeddabdac9fe0316217",
                "fee": "0.005837886487632264",
                "from": "0x00bdb5699745f5b860228c8f939abf1b9ae374ed",
                "to": "0x1522900b6dafac587d499a862861c0869be6e428",
                "nonce": 1554060,
                "gasPrice": 27557088312,
                "gasLimit": 211847,
                "value": "0",
                "gasUsed": 0
            },
            {
                "type": "tx",
                "network": "ETH",
                "time": 1670825689,
                "txid": "0xdcea6b2909b0af653b726cfac508284dca70eef9afc7b0a1f2baa2fa0cd0cce7",
                "fee": "0.000294",
                "from": "0x038406554ab8179840b81a7716cde701fecaaa58",
                "to": "0xb2ed18c33388774c1e7270d1c4ba215d5854bad0",
                "nonce": 847,
                "gasPrice": 14000000000,
                "gasLimit": 21000,
                "value": "0.8",
                "gasUsed": 0
            },
            {
                "type": "tx",
                "network": "ETH",
                "time": 1670825689,
                "txid": "0xcf1f6a31dab47d710850e66da97bf2f32c0fccab727ab68beb50c8fd1d36c98b",
                "fee": "0.000276986995887",
                "from": "0x794e6f1245bdc9263303b46bd7f64f6f0b74c229",
                "to": "0x9c19b0497997fe9e75862688a295168070456951",
                "nonce": 0,
                "gasPrice": 13189856947,
                "gasLimit": 21000,
                "value": "0.94800161359853676",
                "gasUsed": 0
            },
            {
                "type": "tx",
                "network": "ETH",
                "time": 1670825689,
                "txid": "0xcbf48fc75b81d8eceb1ef4943355252975df1a9559604bba09e08db74ecea86a",
                "fee": "0.021127056",
                "from": "0x9696f59e4d72e237be84ffd425dcad154bf96976",
                "to": "0x45b65b158baa0501509d74212a914cb276e18b28",
                "nonce": 3598098,
                "gasPrice": 102000000000,
                "gasLimit": 207128,
                "value": "0.0802509",
                "gasUsed": 0
            },
            {
                "type": "tx",
                "network": "ETH",
                "time": 1670825689,
                "txid": "0xa90553e3fede8b5c83e7c3a92e387572e3bf3934ae59ffa2441fc646fd1e7bbd",
                "fee": "0.000551153180205104",
                "from": "0x42642570425d3f3aac7aeb58c00b121c429ede1a",
                "to": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "nonce": 406,
                "gasPrice": 19139921524,
                "gasLimit": 28796,
                "value": "0",
                "gasUsed": 0
            },
            {
                "type": "tx",
                "network": "ETH",
                "time": 1670825689,
                "txid": "0x95276b7e9aab0403d7347323d2573247d9b2d7726f520ec16079153209c30399",
                "fee": "0.000580297558512",
                "from": "0xcdb5cac6667a9515ebac8e42492e31a017c77094",
                "to": "0xeafc4072bc780d0b9537c7e598f38048d682057a",
                "nonce": 1098,
                "gasPrice": 27633217072,
                "gasLimit": 21000,
                "value": "0.05",
                "gasUsed": 0
            }
        ],
        "note": "{\"totalFee\": \"160.318728930407365654\", \"totalSentValue\": \"2464.005833914287235326\", \"totalCnt\": 196032, \"totalTokenTransferCnt\": 0, \"totalCallTransferCnt\": 0, \"minGasPrice\": \"50\", \"maxGasPrice\": \"500000000000\", \"bestGasPrice\": \"19088534611\"}"
    }
}

地址未确认交易列表

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

参数

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

交易是否确认

GET https://services.tokenview.io/vipapi/pending/{公链简称小写}/{交易哈希}?apikey={apikey}

参数

1. 待确认交易:交易还等待打包,还没有进入到区块链里。如果返回404,说明待确认队列里,没有这笔交易,交易已成功或失败。
2. 如果该交易在待确认队列里,应答如下(因为还没打包,所以块高未知):
"data": {
    "type": "tx",  // 类型 tx表示交易
    "network": "ETH",
    "time": 1670445653, // 交易发生的时间戳
    "txid": "0xcd3fb5d9e3b0157c39936570eb534f9480e685024b1d5481697353f744b48a8c", // 交易ID
    "fee": "0.000031807059501", // 手续费
    "from": "0x173ef98a63d7b968dc3aac38522e76706147f6a9", // 发送方
    "to": "0x3975bfdfdc680179c63e8230ab52548f643097e9", // 接收方
    "nonce": 503,
    "gasPrice": 1514621881,
    "gasLimit": 21000,
    "value": "0.00003550946857299", // 转账金额
    "gasUsed": 0
  }

Request

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

Response

{
    "code": 1,
    "msg": "成功",
    "data": {
        "type": "tx",
        "network": "ETH",
        "time": 1670445653,
        "txid": "0xcd3fb5d9e3b0157c39936570eb534f9480e685024b1d5481697353f744b48a8c",
        "fee": "0.000031807059501",
        "from": "0x173ef98a63d7b968dc3aac38522e76706147f6a9",
        "to": "0x3975bfdfdc680179c63e8230ab52548f643097e9",
        "nonce": 503,
        "gasPrice": 1514621881,
        "gasLimit": 21000,
        "value": "0.00003550946857299",
        "gasUsed": 0
    }
}
上次编辑于: