查询大额交易列表#
获取链上的大额交易列表。
请求路径#
GET
https://web3.okx.com/api/v5/xlayer/transaction/large-transaction-list请求参数#
| 参数名 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| chainShortName | String | 是 | 公链缩写符号,例如 XLAYER |
| type | String | 否 | 查询交易数量大于该数量的交易,最低限额为100;若未填写,默认为100 |
| blockHash | String | 否 | 区块哈希 |
| height | String | 否 | 区块高度 |
| limit | String | 否 | 每一页返回的条数,默认返回最近的20条,最多100条 |
| page | String | 否 | 页码 |
响应参数#
| 参数名 | 类型 | 描述 |
|---|---|---|
| page | String | 当前页码 |
| limit | String | 当前页共多少条数据 |
| totalPage | String | 总共多少页 |
| chainFullName | String | 公链全称,例如:X Layer |
| chainShortName | String | 公链缩写符号,例如:XLAYER |
| transactionList | Array | 交易列表 |
| > txid | String | 交易哈希 |
| > blockHash | String | 区块哈希 |
| > height | String | 交易发生的区块 |
| > transactionTime | String | 交易时间;Unix时间戳的毫秒数格式,如 1597026383085 |
| > input | String | 输入,如果存在多个地址,以,分隔 |
| > output | String | 输出,如果存在多个地址,以,分隔 |
| > isInputContract | Bol | input地址是否是合约地址 |
| > isOutputContract | Bol | output地址是否是合约地址 |
| > amount | String | 数量 |
| > transactionSymbol | String | 交易数量对应的币种 |
| > txfee | String | 手续费 |
| > methodId | String | 方法 |
| > transactionType | String | 交易类型0:原始交易类型 1:EIP2930 2:EIP1559 |
| > state | String | 交易状态 success 成功 fail 失败 pending 等待确认 |
请求示例#
shell
curl --location --request GET 'https://web3.okx.com/api/v5/xlayer/transaction/large-transaction-list?chainShortName=xlayer&limit=1' \
--header 'OK-ACCESS-KEY: 37c541a1-****-****-****-10fe7a038418' \
--header 'OK-ACCESS-SIGN: leaV********3uw=' \
--header 'OK-ACCESS-PASSPHRASE: 1****6' \
--header 'OK-ACCESS-TIMESTAMP: 2023-10-18T12:21:41.274Z'
响应示例#
json
{
"code": "0",
"msg": "",
"data": [
{
"page": "1",
"limit": "1",
"totalPage": "10000",
"chainFullName": "X Layer",
"chainShortName": "XLAYER",
"transactionList": [
{
"txid": "0x2fffea8d78e32e742326d0d9b3309ad3c17e06caccbec8c2e51eb844f9369c86",
"blockHash": "0x2dbc439ca3be95cf2283f9066bc8a91848e76566b04f225c1e26ce665d6128e0",
"height": "31135875",
"transactionTime": "1755493597000",
"input": "0x94f79cc5884f02f5038f5a8c0d78658c86832c73",
"output": "0x51883502679b7e3eb3e822dc54d9c0e45ff11f41",
"isInputContract": false,
"isOutputContract": false,
"amount": "113.81610704542136",
"transactionSymbol": "OKB",
"txfee": "0.000021",
"methodId": "",
"transactionType": "0",
"state": "success"
}
]
}
]
}
