Get Internal Transactions By Hash#
Query for internal transaction detail by transaction hash.
Request Path#
GET
https://web3.okx200.com/api/v5/xlayer/transaction/internal-transaction-detailRequest Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
| chainShortName | String | Yes | The abbreviated name of the blockchain network, e.g. XLAYER |
| txId | String | Yes | Transaction hash |
| page | String | No | Page |
| limit | String | No | The number of results returned per request |
Response Parameters#
| Parameter | Type | Description |
|---|---|---|
| page | String | Current page number |
| limit | String | The amount of data |
| totalPage | String | Total number of pages |
| internalTransactionDetails | Array | Internal transaction details |
| > txId | String | Transaction hash |
| > height | String | Block height of the transaction |
| > transactionTime | String | Transaction time |
| > from | String | Sender address |
| > to | String | Recipient address |
| > isFromContract | Bol | Is the From address a contract address |
| > isToContract | Bol | Is the To address a contract address |
| > operation | String | Operation type |
| > amount | String | Transaction amount |
| > state | String | Trading state |
Request Example#
shell
curl --location --request GET 'https://web3.okx200.com/api/v5/xlayer/transaction/internal-transaction-detail?chainShortName=xlayer&txId=0x1af59bfbca54ad5ed218b22916c311ea32093a648f45f1ff2c01bc28c5554b6f&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": "16",
"internalTransactionDetails": [
{
"txId": "0x1af59bfbca54ad5ed218b22916c311ea32093a648f45f1ff2c01bc28c5554b6f",
"from": "0x69c236e021f5775b0d0328ded5eac708e3b869df",
"to": "0xc71f9e1de80eb505c0cb3bbf90ae6593130e5d25",
"height": "31277273",
"transactionTime": "1755569805000",
"isFromContract": true,
"isToContract": true,
"operation": "staticcall",
"amount": "0",
"state": "success"
}
]
}
]
}
