Quick Start
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
eth,ropsten,rinkeby,bsc,solana,polygon,avax,fantom,arbitrum,terra,xdai,boba,ont,tron,heco,okex,optimism,harmony,dot,neo,aurora,cronos,moonriver,bsctest
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 modified 1yr ago