Installing our SDK

Install the SDK via npm or yarn.
npm install --save @0xsquid/sdk
or
yarn add @0xsquid/sdk

Get an integratorId

You can register to get an integratorId with the Squid Team, please complete this form to acquire one. This isn't compulsory but will enable analytics of usage.

Base URLs

Code example

import { Squid } from "@0xsquid/sdk";
(async () => {
// instantiate the SDK
const squid = new Squid();
// set your configuration params
squid.setConfig({
baseUrl: "https://api.squidrouter.com",
integratorId: "your-integrator-id"
});
// init the SDK
await squid.init();
console.log("Squid inited");
})();

Advanced configuration

Check out Advanced set up if you're a power user.