Advanced set up

To get started you will need to instantiate and configure the Squid SDK:

const Squid = new Squid(config)

The optional config parameter can be used to pass custom configuration to the SDK:

type Config = {
  apiKey?: string
  baseUrl?: string
  executionSettings?: {
    infiniteApproval?: boolean


API KEY to have access to Squid API (not implemented yet)


Set the Squid API URL, this should be used to set the environment


Customize executeRoute method behavior


Set to false if you only want to approve the specific amount of tokens to be send in the executedRoute method. (infinite approval as default)

Last updated