Vývojářský portál
Motiv

Get Address Transaction List#

Get the transaction list for a TradeZone address with optional filtering by protocol type, token contract, block range, and direction.

Request Path#

GET
https://web3.okx.com/api/v5/xlayer/tz/address/transaction-list

Request Parameters#

ParameterTypeRequiredDescription
chainShortNameStringYesThe abbreviated name of the blockchain network, e.g, TRADE_ZONE
addressStringYesThe address to query
startBlockHeightLongNoStart block height (inclusive)
endBlockHeightLongNoEnd block height (inclusive)
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.okx.com/api/v5/xlayer/tz/address/transaction-list?chainShortName=TRADE_ZONE&address=0x7ad674c0595de0885f7335b8dcaa91ca5d1723e5&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": "9341",
            "total": "9341",
            "data": [
                {
                    "hash": "0x11d02c8e2b830265507b0dfc467900f30c1e729359e660a84bcc2f3b1e1b8f34",
                    "blockHeight": "21321328",
                    "blockHash": "0x61b22ea3b0a64ff0a9110daaca7dca77e6ba8e2324057ddbc929a3ddf55d226e",
                    "blockTime": "1779167134517",
                    "status": "0x1",
                    "from": "0x7ad674c0595de0885f7335b8dcaa91ca5d1723e5",
                    "actionType": "updateOwner",
                    "index": "3",
                    "value": "",
                    "valueRaw": ""
                }
            ]
        }
    ]
}