monaco.api.withdrawals
Source: protos/api/withdrawals.proto
Use WithdrawalsService to allocate withdrawals, list the ones still awaiting confirmation, and retrieve ABI-encoded executeWithdrawal(...) vault calldata for on-chain submission once the merkle proof is available.
Notes
- Initiating a withdrawal requires authentication and withdraw permission.
InitiateWithdrawalreturns an emptycalldatafield until the withdrawal root is confirmed on-chain.GetWithdrawalcan re-fetch the merkle-proof-backedexecuteWithdrawal(...)calldata once it is ready.ListPendingWithdrawalsis authenticated and returns only the caller’s own withdrawals that are still awaiting on-chain root confirmation, newest first. Each entry carrieswithdrawal_index,asset_id,asset_symbol, the rawamount,destination,status(alwayspending), andcreated_at, but no calldata: fetch that withGetWithdrawalonce the withdrawal is confirmed.ListPendingWithdrawalsis cursor-paginated: send an emptypage_tokento start, then each response’snext_page_tokenuntil it comes back empty; an empty token is definitive.page_sizedefaults to20and must be 1–1000, and a larger value is rejected rather than clamped.totalandtotal_pagesare exact. There is nopagefield: a stub generated from an older proto that still sets it has the unknown field discarded and reads the first page on every call, so regenerate it.ListPendingWithdrawalsreturnsINVALID_ARGUMENTfor an invalid page size or token,UNAUTHENTICATEDwithout a session,RESOURCE_EXHAUSTEDwhen the account’s read budget is exhausted and enforced (retry afterRetryInfo), andINTERNALon a backend failure.

