NeptuneService
Initialize NeptuneService
import { NeptuneService } from '@injectivelabs/sdk-ts'
import { Network } from '@injectivelabs/networks'
// Create a NeptuneService instance using the mainnet
const neptuneService = new NeptuneService(Network.MainnetSentry)Fetch Prices
const assets = [
{
native_token: {
denom: 'peggy0xdAC17F958D2ee523a2206206994597C13D831ec7', // peggy USDT bank denom
},
},
{
token: {
contract_addr: 'inj1cy9hes20vww2yr6crvs75gxy5hpycya2hmjg9s', // nUSDT contract address
},
},
]
const prices = await neptuneService.fetchPrices(assets)
console.log(prices)Fetch Redemption Ratio
Convert CW20 nUSDT to Bank USDT
Convert Bank USDT to CW20 nUSDT
Fetch Lending Rates
Fetch Lending Rate by Denomination
Calculate Annual Percentage Yield (APY)
Create and Broadcast a Deposit Message
Create and Broadcast a Withdraw Message
Last updated
