Installing our SDK
Install the SDK via npm or yarn.
npm install --save @0xsquid/sdk
or
yarn add @0xsquid/sdk
import { Squid } from "@0xsquid/sdk";
(async () => {
// instantiate the SDK
const squid = new Squid({
baseUrl: "https://testnet.api.0xsquid.com" // for mainnet use "https://api.0xsquid.com"
});
// init the SDK
await squid.init();
console.log("Squid inited");
})();
Last modified 14d ago