Skip to main content
Use this Quick Action to deep link into the Swap interface with prefilled parameters.

Parameters

app_id
string
Target app id for the Swap quick action: app_6c5c5717c77abe83be8814c032c3a6f9.
path
string
Path inside the target app. Use ’/’ for Swap.
fromToken
string | 0x${string}
Token address for the “from” token.
toToken
string | 0x${string}
Token address for the “to” token.
amount
string
Amount of the from token in base token units.
sourceAppId
string
app_id of the app that uses this quick action.
sourceAppName
string
Name of the app that uses this quick action.
Swap Screen

Helper function