Skip to main content

Install and initialize

📝Guides

Core SDK

The Core SDK is a wrapper around our API and provides the bulk of the functionality of the Immutable platform. Before you can start using the Core SDK, you must initialize the client.

Initialize the Core SDK client with the network on which you want your application to run:

NetworkDescription
SandboxThe default test network (currently, it is Sepolia)
ProductionEthereum network
  1. Install the npm package
npm install @imtbl/sdk --save
# or
yarn add @imtbl/sdk
  1. Initialize the SDK with the correct environment:
import { config, x } from "@imtbl/sdk";

const { Environment } = config;

const {
IMXClient,
imxClientConfig, // helper method to create a client config
} = x;

const environment = Environment.SANDBOX; // or Environment.PRODUCTION
const client = new IMXClient(imxClientConfig({ environment }));;