Vývojářský portál
Motiv

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-list

Request Parameters#

ParameterTypeRequiredDescription
chainShortNameStringYesThe abbreviated name of the blockchain network, e.g, TRADE_ZONE
heightStringYesThe block height to query
limitIntegerNoThe number of results returned per request. The maximum is 100. The default is 20.
pageIntegerNoPage number, default 1

Response Parameters#

ParameterTypeDescription
pageStringCurrent page number
limitStringNumber of results per page
totalPageStringTotal number of pages
totalStringTotal number of records
dataArrayTransaction list
> hashStringTransaction hash
> blockHeightStringBlock height
> blockHashStringBlock hash
> blockTimeStringBlock time (ms)
> statusStringTransaction status: 0x1 success / 0x0 failure
> fromStringBusiness executing user address
> actionTypeStringAction type
> indexStringExecution order
> valueStringTransaction amount (token precision applied)
> valueRawStringTransaction 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": ""
                }
            ]
        }
    ]
}