Skip to main content
Create a new swap intent that describes what the user wants to swap. The intent is created off-chain and later executed on-chain by a resolver.

Request

Response

The response contains the intent ID, the deadline, and the data the user must sign.

Approval mechanism

The approval flow depends on the source chain and swap type. The value of approval_mechanism may change, and the structure of params_to_sign depends on it. Always check approval_mechanism and handle params_to_sign accordingly.
domain, types, and witness contain the EIP-712 domain, types, and witness data (shortened here).
Next: submit the signed approval.