Skip to main content

Swap API

Generates ready-to-use transaction calldata for executing a swap via the Universal Router. The response can be sent directly as a transaction.

POST /api/v1/swap

Request Body

Response

Slippage Protection

These limits are enforced on-chain by the Universal Router. The transaction reverts if the actual execution exceeds the slippage bounds.

Usage

Examples