Портал разработчиков
Тема

Get Internal Transaction List By Address#

Get a list of internal transactions associated with an address.

Request Path#

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

Request Parameters#

ParameterTypeRequiredDescription
chainShortNameStringYesThe abbreviated name of the blockchain network
addressStringYesAddress
startBlockHeightStringNoThe starting block height
endBlockHeightStringNoThe end block height
isFromOrToStringNofrom, filter transactions where the from address is the query address. to, filter transactions where the to address is the query address
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
transactionListArrayTransaction list
> txidStringTransaction hash
> blockHashStringBlock hash
> heightStringBlock height
> transactionTimeStringThe Unix timestamp of the transaction time, in milliseconds format, e.g., 1597026383085
> fromStringSender address
> toStringRecipient address
> isFromContractBolIs the From address a contract address
> isToContractBolIs the To address a contract address
> operationStringOperation type
> amountStringTransaction amount
> stateStringTransaction status success fail
> symbolStringSymbol of the token

Request Example#

shell
curl --location --request GET 'https://web3.okx.com/api/v5/xlayer/address/internal-transaction-list?chainShortName=xlayer&address=0x1e4a5963abfd975d8c9021ce480b42188849d41d&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": [
        {
            "limit": "1",
            "page": "1",
            "totalPage": "10000",
            "transactionList": [
                {
                    "txId": "0x06eadc91e56112be1ea348fa61fc58b5aa4637dd128d9b823a876340d78157df",
                    "operation": "call",
                    "blockHash": "0xaebfc9302cce84b17cc14b6a865b7ee452ecfc58d1bd6e01d3a512a2d8878bae",
                    "height": "31276541",
                    "transactionTime": "1755569401000",
                    "from": "0x8869230d573bc68446d4a4a3e08ff93a5d59e797",
                    "to": "0x1e4a5963abfd975d8c9021ce480b42188849d41d",
                    "isFromContract": true,
                    "isToContract": true,
                    "amount": "0",
                    "symbol": "OKB",
                    "state": "success"
                }
            ]
        }
    ]
}