API Reference

Get Withdrawal History

Method Name

private/get_withdrawal_history

Get subaccount withdrawal history.
Required minimum session key permission level is read_only

Parameters

subaccount_id integer required
Subaccount id
end_timestamp integer
End timestamp of the event history (default current time)
start_timestamp integer
Start timestamp of the event history (default 0)

Response

id string or integer required
result object required
result.events array of objects required
List of withdrawals
result.events[].amount string required
Amount withdrawn by the subaccount
result.events[].asset string required
Asset withdrawn
result.events[].error_log object or null required
If failed, error log for reason
result.events[].timestamp integer required
Timestamp of the withdrawal (in ms since UNIX epoch)
result.events[].tx_hash string required
Hash of the transaction that withdrew the funds
result.events[].tx_status string required
Status of the transaction that deposited the funds
enum requested pending settled reverted ignored timed_out

Example

{request_example_shell}
{request_example_javascript}
{request_example_python}

The above command returns JSON structured like this:

{response_example_json}