Installing our SDK
Install the SDK via npm or yarn.
npm install --save @0xsquid/sdk
or
yarn add @0xsquid/sdk
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. 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");
})();
Last modified 7h ago