Get Block Transaction List#
Get the transaction list inside a single TradeZone block.
Request Path#
GET
https://web3.okx200.com/api/v5/xlayer/tz/block/transaction-listRequest Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
| chainShortName | String | Yes | The abbreviated name of the blockchain network, e.g, TRADE_ZONE |
| height | String | Yes | The block height to query |
| limit | Integer | No | The number of results returned per request. The maximum is 100. The default is 20. |
| page | Integer | No | Page number, default 1 |
Response Parameters#
| Parameter | Type | Description |
|---|---|---|
| page | String | Current page number |
| limit | String | Number of results per page |
| totalPage | String | Total number of pages |
| total | String | Total number of records |
| data | Array | Transaction list |
| > hash | String | Transaction hash |
| > blockHeight | String | Block height |
| > blockHash | String | Block hash |
| > blockTime | String | Block time (ms) |
| > status | String | Transaction status: 0x1 success / 0x0 failure |
| > from | String | Business executing user address |
| > actionType | String | Action type |
| > index | String | Execution order |
| > value | String | Transaction amount (token precision applied) |
| > valueRaw | String | Transaction amount (raw integer, smallest unit) |
Request Example#
shell
curl --location --request GET 'https://web3.okx200.com/api/v5/xlayer/tz/block/transaction-list?chainShortName=TRADE_ZONE&height=21217618&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": "4",
"total": "4",
"data": [
{
"hash": "0x8248c0466e31765fa0731c6aae1d35e3b525567c6afe1013800d9895470021c3",
"blockHeight": "21217618",
"blockHash": "0xdf8ad76a3fac0a8af9d8496bc68319a53dafe1e9c4965e0b34d0364c561f2cbd",
"blockTime": "1779156763517",
"status": "0x1",
"from": "0x7ad674c0595de0885f7335b8dcaa91ca5d1723e5",
"actionType": "updateOwner",
"index": "3",
"value": "",
"valueRaw": ""
}
]
}
]
}
