Get Unconfirmed Transaction List#
Get the list of unconfirmed transactions on the chains, and only return nearly 10,000 transaction data.
Request Path#
GET
https://web3.okx.com/api/v5/xlayer/transaction/unconfirmed-transaction-listRequest Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
| chainShortName | String | Yes | The abbreviated name of the blockchain network, e.g, XLAYER. |
| page | String | No | Page |
| limit | String | No | The number of results returned per request. The maximum is 50. The default is 20. |
Response Parameters#
| Parameter | Type | Description |
|---|---|---|
| page | String | Current page number |
| limit | String | The amount of data |
| totalPage | String | Total number of pages |
| chainFullName | String | The full name of the blockchain network, e.g. X Layer |
| chainShortName | String | The abbreviated name of the blockchain network, e.g. XLAYER |
| transactionList | Array | Transaction list |
| > txid | String | Transaction hash |
| > height | String | Block height |
| > transactionTime | String | The Unix timestamp of the transaction time, in milliseconds format, e.g., 1597026383085. |
| > isInputContract | Bol | Is the input address a contract address |
| > isOutputContract | Bol | Is the output address a contract address |
| > input | String | Token arrival address |
| > output | String | Token transfer out address |
| > amount | String | Transaction amount |
| > transactionSymbol | String | Token symbol |
| > txfee | String | Transaction fee |
| > methodId | String | Method ID |
| > transactionType | String | Transaction type 0:original transaction type 1:EIP2930 2:EIP1559 |
| > state | String | Transaction state success fail pending |
| > randomNumber | String | RandomNumber |
Request Example#
shell
curl --location --request GET 'https://web3.okx.com/api/v5/xlayer/transaction/unconfirmed-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'
Response Example#
json
{
"code": "0",
"msg": "",
"data": [
{
"page": "1",
"limit": "1",
"totalPage": "0",
"chainFullName": "X Layer",
"chainShortName": "XLAYER",
"transactionList": []
}
]
}
