Vývojářský portál
Motiv

Get Large Transaction List#

Get the list of large-value transactions on the chains.

Request Path#

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

Request Parameters#

ParameterTypeRequiredDescription
chainShortNameStringYesThe abbreviated name of the blockchain network, e.g, XLAYER
typeStringNoQuery transactions with amount more than this value, with a minimum threshold of 100. The default is 100.
heightStringNoBlock height
pageStringNoPage
limitStringNoThe number of results returned per request. The maximum is 50. The default is 20.

Response Parameters#

ParameterTypeDescription
pageStringCurrent page number
limitStringThe amount of data
totalPageStringTotal number of pages
chainFullNameStringThe full name of the blockchain network, e.g. X Layer
chainShortNameStringThe abbreviated name of the blockchain network, e.g. XLAYER
transactionListArrayTransaction list
> txidStringTransaction hash
> blockHashStringBlock hash
> heightStringBlock height
> transactionTimeStringThe Unix timestamp of the transaction time, in milliseconds format, e.g., 1597026383085
> inputStringInput address
> outputStringOutput address
> isInputContractBolIs the input address a contract address
> isOutputContractBolIs the output address a contract address
> amountStringTransaction amount
> transactionSymbolStringTransaction symbol
> txfeeStringTransaction fee
> methodIdStringMethod ID
> transactionTypeStringTransaction type 0:original transaction 1:EIP2930 2:EIP1559
> stateStringTransaction status success fail pending

Request Example#

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'

Response Example#

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"
                }
            ]
        }
    ]
}