# Ionic SDK

### Quickstart

**Installation**

```bash
npm i --save @ionicprotocol/sdk ethers 
```

Depending on your machine configuration, you may also need this:

```bash
npm install -D tslib @types/node
```

**Usage**

```typescript
import { ethers } from "ethers";
import { IonicSdk } from '@ionicprotocol/sdk';


const chainId = 56;  // for BSC mainnet
const provider = new ethers.providers.JsonRpcProvider('<YOUR-ENDPOINT-HERE>')

const ionic = new IonicSdk(provider, chainId);
```

The `IonicSdk` object provides access to all the functionality needed to query, manage & interact with pools created via our protocol. See the next sections to get an overview of the possibilities it enables.

To get a sense of how the `ionic-sdk` is used in a real-life, full-fledged web application, check out the latest section, [Putting It All Together](/developers/ionic-sdk/putting-it-all-together.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ionic.money/developers/ionic-sdk.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
