Skip to main content
POST /withdraw A withdrawal has three steps, and action selects which one the facilitator submits to the Treasury and pays gas for:
  • request opens a withdrawal request and starts its grace period. The user signs an EIP-712 authorization.
  • cancel clears a pending request. The user signs an EIP-712 authorization.
  • finalize pays out a request whose grace period has elapsed. It needs no signature, because the contract pays the user whoever submits it.
Every action applies to the user named in the request, never to the relayer. This works for ETH as well as tokens; ETH uses the zero address as asset. POST /withdraw/verify takes the same body, runs every check without broadcasting, and answers with the /verify response shape.

Request body

string
CAIP-2 network ID. When omitted, the facilitator uses the first network it serves whose core accepts the asset. Send it.
string
required
request|cancel|finalize
object
Required for request and cancel.
string
string
string
request only. Base units.
string
string
string
32 bytes as hex. Request and cancel authorizations share one nonce space.
string
The user’s EIP-712 signature under the Treasury’s domain.
string
Required for finalize.
string
Required for finalize.

Responses

Every request the facilitator can parse returns 200. Read success.
boolean
required
string
Transaction hash. Present on success, and on a failure that happened after broadcast.
string
string
The user the action applied to.
string
string
Present for request only.
string
A machine-readable reason code. Present on failure.
string
boolean
Whether repeating the same request later may succeed. Present on failure.

Reason codes

Status codes