Quick Start

How to install

You can install the SDK by npm.

npm i @gen-io/gen-sdk

Or, if you use yarn as your module management tool.

yarn add @gen-io/gen-sdk

Available public chain

eth,ropsten,rinkeby,bsc,solana,polygon,avax,fantom,arbitrum,terra,xdai,boba,ont,tron,heco,okex,optimism,harmony,dot,neo,aurora,cronos,moonriver,bsctest

How to use the sdk in your project

import { GenSdk } from '@gen-io/gen-sdk';
const genSdk = new GenSdk()
const { api, swapSdk, config, web3, utils } = genSdk

let data = await api.getGasPrice({
   chain: 'bsc'
})

You can then use all the functions explored by the SDK (API and swapSdk).

Last updated