Install

This example will be using Mainnet. Testnet or Mainnet?

From the terminal, install our SDK

npm install --save @0xsquid/sdk@2.8.0-beta.0 # or higher

Now in your typescript file

import { Squid } from "@0xsquid/sdk";

(async () => {
  // instantiate the SDK with config
   const squid = new Squid({
    baseUrl: "https://v2.api.squidrouter.com",
    integratorId: "your-integrator-id"
  });

  // init the SDK
  await squid.init();
  console.log("Squid inited");
})();

Last updated