Skip to main content

Request Withdrawal

Rocky impl: POST /v1/withdrawals

Submit a withdrawal of amount units of asset from user_id's wallet to the Canton party dest_user_handle_party.

Request

POST /v1/withdrawals
Content-Type: application/json

{
"user_id": "5cfb031b-5936-4467-9533-cd2df576dbb8",
"asset": "CC",
"amount": "10.0",
"dest_user_handle_party": "alice::1220abc...",
"idempotency_key": "ui-withdraw-1748275200"
}

Response — 200

{ "withdrawal_id": "8c9a1f2e7b6d5c4a3b2c1d0e9f8a7b6c" }

Errors: 400 malformed UUID / amount / party, 409 idempotency collision, 422 insufficient balance, 503 trading service down.