AutoWithdrawService
List Auto-Withdraw Runs
List the account's auto-withdraw runs with their payouts, newest first.
Request
curl --request GET \ \ --url 'https://api.testnet.polyester.com/v1/auto-withdraw/runs?limit=100&subaccountId=45LUmqjT' \ --header 'Accept: */*' \ --header 'X-API-KEY-ID: YOUR_API_KEY_ID' \ --header 'X-API-TIMESTAMP: YOUR_API_TIMESTAMP' \ --header 'X-API-SIGNATURE: YOUR_API_SIGNATURE'
Responses
{
"nextPageToken": "eyJvZmZzZXQiOjIwMH0",
"runs": [
{
"createdAt": "2025-01-01T00:00:00Z",
"finishedAt": "2025-01-01T00:00:00Z",
"reason": "value",
"ruleVersion": 1,
"runSeq": "1",
"scheduledFor": "2025-01-01T00:00:00Z",
"state": "PLANNED",
"steps": [
{
"amount": "18.446744073709551617",
"assetId": 100,
"available": "18.446744073709551617",
"destinationAddress": "0x3333333333333333333333333333333333333333",
"destinationChainId": "1",
"intentId": "9155001234567",
"networkFee": "18.446744073709551617",
"reason": "value",
"state": "PENDING",
"txHash": "0xabc123def4567890abc123def4567890abc123def4567890abc123def4567890",
"valueUsd": "18.446744073709551617"
}
]
}
]
}Maximum number of runs to return: 0 or omitted means 20, at most 100.
Cursor from a previous response's nextPageToken; omit for the first page.
Public subaccount ID; omit for the caller's root account. Public ID, as a base58 string.
Cursor for the next page. Empty when no more results exist.
eyJvZmZzZXQiOjIwMH0When the run started.
2025-01-01T00:00:00ZWhen the run ended; unset while it is in progress.
2025-01-01T00:00:00ZMachine-readable reason for a skipped run: nothing_to_pay, price_unavailable (an asset was not paid because no current price valued it) or rule_superseded; empty otherwise.
valueThe rule version the run executes.
1The account's run number, increasing by one per run.
1The scheduled slot the run belongs to.
2025-01-01T00:00:00ZWhere the run stands.
PLANNEDWhat the step pays, as a decimal string in whole units of the asset; '0' when skipped.
18.446744073709551617Ledger asset paid.
100The account's available balance of the asset when the run started, as a decimal string in whole units of the asset.
18.446744073709551617Canonical destination address.
0x3333333333333333333333333333333333333333External destination chain identifier.
1Withdraw intent identifier once the withdrawal is accepted; follows the same lifecycle as a user withdrawal.
9155001234567The network fee charged on the withdrawal, as a decimal string in whole units of the asset. Once it completed, the destination received amount minus this fee; once Zipper rejected it or its execution failed, the fee Zipper kept, which is not refunded. Absent until the step is final, when it was skipped or failed before it reached Zipper, and when the fee was not reported.
18.446744073709551617Machine-readable reason for a skipped or failed step, such as below_minimum, price_unavailable (the rule has a USD minimum and no current price valued the asset; the funds stay for a later run), rule_superseded, destination_not_whitelisted, destination_cooling_down (a broker vault's destination added to its external withdraw whitelist less than 24 hours ago; the funds stay for a later run), authority_revoked, gateway_capacity_insufficient (the funds stay for a later run), withdrawal_released or withdrawal_failed; empty otherwise.
valueWhere the payout stands.
PENDINGDestination-network transaction hash once the withdrawal completed.
0xabc123def4567890abc123def4567890abc123def4567890abc123def4567890USD value of the payable amount when the run started, as a decimal string in whole USD; absent when the rule has no USD minimum or no current price was available.
18.446744073709551617| Key | HTTP status | Connect code | Error | When |
|---|---|---|---|---|
| unauthenticated | 401 | unauthenticated | Unauthenticated | Authentication required. |
| permission-denied | 403 | permission_denied | Permission Denied | Permission denied. |
| invalid-argument | 400 | invalid_argument | Invalid Argument | Invalid argument. |
| not-found | 404 | not_found | Not Found | Not found. |
| unavailable | 503 | unavailable | Unavailable | Service unavailable. |