Query withdrawal transaction history for current user. Transactions are sorted by createdTime.
Security
SSO_TOKEN
GET
const query = new URLSearchParams({
currency: 'string',
txId: 'string',
status: '0',
limit: '1000',
startTime: '0',
endTime: '0'
}).toString();
const resp = await fetch(
`https://docs.fxinside.net/_mock/openapi/integral-api-reference/rest/custody/v2/withdraw/history?${query}`,
{
method: 'GET',
headers: {
SSO_TOKEN: 'YOUR_API_KEY_HERE'
}
}
);
const data = await resp.text();
console.log(data);Successful operation
Array []
An integer that indicates the status of the withdrawal transactions to return:
- 0 = email sent
- 1 = cancelled
- 2 = awaiting approval
- 3 = rejected
- 4 = processing
- 5 = failure
- 6 = completed
Example:0
Withdrawal address.
Example:"bc1qrpp7g75sx3ejclvsfdw2uahzchtyu7vumkuadu"
Additional field required by some blockchains for identifying the transaction recipient beyond a wallet address.
Example:""
Transaction ID.
Example:"98A3EA560C6B3336D348B6C83F0F95ECE4F1F5919E94BD006E5BF3BF264FACFC"
The time the transaction was created. Unix time in milliseconds.
Example:1661493146000
The time the transaction was updated. Unix time in milliseconds.
Example:1661493146000
Response
[ { "id": "769800519366885376", "amount": "0.01", "transactionFee": "0.0001", "currency": "BTC", "network": "BTC", "status": 0, "address": "bc1qrpp7g75sx3ejclvsfdw2uahzchtyu7vumkuadu", "tag": "", "txId": "98A3EA560C6B3336D348B6C83F0F95ECE4F1F5919E94BD006E5BF3BF264FACFC", "createdTime": 1661493146000, "updatedTime": 1661493146000, "reason": "Rejection reason" } ]