Skip to main content
After an intent is created, an approval must be added before it can be executed. This endpoint attaches a signed approval to an existing intent. The approval proves the user has authorized the swap and allows it to proceed.

Request body

The body depends on the approval mechanism returned when the intent was created. It includes the approval type and the data signed by the user.
signed_data is the Permit2 signature. See Signing for EVM and Signing for Tron.If the API returns error code 25, the user has not yet approved Permit2 for the selected token. The user must approve Permit2 on-chain before continuing. See Approve for Permit2.

Example