Execute your swap or call
We allow you to execute any on-chain or cross-chain swap and bridging process and a combination of both.
Last updated
We allow you to execute any on-chain or cross-chain swap and bridging process and a combination of both.
Last updated
Executing a route requires a signer to be set up. How to set up a signer.
Type:
In addition to the first two parameters, executeRoute
takes an optional executionSettings
object as a third parameter.
infiniteApproval
defaults totrue
if not set by the user. This will set the SquidRouter contract's allowance of fromToken
to max.
When infiniteApproval
is false
, the Squid SDK will approve only the amount necessary for this trade.
On some chains, you may need to set setGasPrice to true, since gas estimation is different across different EVMs.