🔋
Ionic Docs
  • Welcome to Ionic
  • Ionic pools
  • Yield-Bearing Vaults (ERC-4626)
  • Partner & Pool Operator Documents
    • Overview
    • Ionic For Partners
      • Long-tail and exotic asset support
      • Liquid Staking Tokens
      • Forex Markets & Non-US Centric DeFi
      • Delta-Neutral Strategies
      • AMM LP Pools
    • Advanced Features
    • Getting Started
    • Pool Customisations
      • The Markets
      • The Yield
      • Pool Parameters
  • Security
    • Security Outline
      • Oracle Security
      • Yield Bearing 4626 Strategy Risk Scoring
      • Liquidity Monitoring
    • Audit
  • Developers
    • Ionic SDK
      • Chain Configuration and Addresses
      • Data Fetching & Pool Introspection
      • Funding Operations
      • Advanced Use-Cases
      • Liquidations
      • Putting It All Together
      • API Reference, Typing & Interfaces
    • Deployed Contract Addresses
  • Support
    • Media Kit
    • DeFi Terms Glossary
    • FAQ
  • Documents
    • Privacy Policy
    • Terms and Conditions
Powered by GitBook
On this page
  1. Developers

Ionic SDK

The Ionic SDK is a chain-agnostic toolkit to interact with the Ionic Protocol, enabling developers to seamlessly integrate isolated pools into their own applications

PreviousAuditNextChain Configuration and Addresses

Last updated 1 year ago

Quickstart

Installation

npm i --save @ionicprotocol/sdk ethers 

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

npm install -D tslib @types/node

Usage

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