查询单笔交易的详情数据。
GET https://www.okx.com/api/v5/waas/transaction/get-transaction-detail
Parameter | Type | Required | Description |
---|---|---|---|
walletId | String | Yes | 钱包唯一标识 |
orderId | String | No | 交易唯一标识 |
txHash | String | No | 交易哈希,不能和 orderId 同时为空 |
chainId | String | Yes | 链唯一标识 |
Parameter | Type | Description |
---|---|---|
chainId | String | 链唯一标识 |
orderId | String | 交易唯一标识 |
txhash | String | 交易哈希 |
address | String | 钱包地址 |
fromAddr | String | 发送地址,适用于 EVM 和 UTXO 网络交易 |
toAddr | String | 接收地址,适用于 EVM 和 UTXO 网络交易 |
inAddrList | Array<String> | 输入地址列表,仅适用于 UTXO 网络 |
>address | String | 地址 |
>coinAmount | String | 代币数量 |
outAddrList | Array<String> | 输出地址列表,仅适用于 UTXO 网络 |
>address | String | 地址 |
>coinAmount | String | 代币数量 |
txType | String | 交易类型 1:接收代币 2:发送代币 3:合约交互 50:BRC20_MINT 51:BRC20_INSCRIBE 52:BRC20_TRADE 53:BRC20_SEND 54:BRC20_RECEIVE 60:BRC20_DEPLOY |
txTime | String | 交易时间,时间戳 |
txStatus | String | 交易状态 1、2 排队中 3 失败 4 成功 |
exploreUrl | String | URL |
gasPrice | String | gas 价格 |
priorityFee | String | 小费 |
gasLimit | String | gas 限额 |
nonce | String | nonce |
assetChange | Array<Object> | 资产变动 |
>coinId | String | 币种唯一标识 |
>brc20Coin | boolean | 是否 BRC-20 代币 |
>direction | String | 交易方向 |
>coinAmount | String | 交易币种数量 |
>coinAmountNum | String | 交易币种整数 |
>precision | String | 精度 |
>coinSymbol | String | 币种简称 |
>coinName | String | 币种名称 |
>currencyAmount | String | 法币金额 (美元) |
>coinLogoUrl | String | 币种 logo 图片 URL |
curl --location --request GET 'https://www.okx.com/api/v5/waas/transaction/get-transaction-detail?walletId=13886e05-1265-4b79-8ac3-b7ab46211001&orderId=469356614923743232&txHash=79c06b829866217e7a5843def7c5ceaa8451971044e35616330ac3b37c3c7854&chainId=1' \
--header 'OK-ACCESS-PROJECT: 86af********d1bc' \
--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'
{
"code": "0",
"msg": "success",
"data": [{
"chainId": "1",
"orderId": "469356614923743232",
"txhash": "79c06b829866217e7a5843def7c5ceaa8451971044e35616330ac3b37c3c7854",
"address": "0xdf54b6c6195ea4d948d03bfd818d365cf175cfc2",
"fromAddr": "0xdf54b6c6195ea4d948d03bfd818d365cf175cfc2",
"toAddr": "0x1e80c39051f078ee34763282cbb36ffd88b40c65",
}],
"txType": "2",
"txTime": "1697547606177",
"txStatus": "3",
"exploreUrl": "",
"gasPrice": "null",
"priorityFee": "null",
"gasLimit": "null",
"nonce": "null",
"assetChange": [{
"coinId": "3",
"brc20Coin":true;
"direction": "2",
"coinAmount": "0.00012300000000000",
"coinAmountNum": "123000000000000",
"precision": "18",
"coinSymbol": "ETH",
"coinName": "ETH",
"currencyAmount": null,
"coinLogoUrl": "https://static.coinall.ltd/cdn/wallet/logo/ETH-20220328.png"
}]
}]
}