ποΈAutomated Vaults
Query
Fetch Vaults
import { IndexerGrpcMitoApi } from '@injectivelabs/sdk-ts'
const MITO_API_ENDPOINT = 'https://k8s.mainnet.mito.grpc-web.injective.network' /** for mainnet */
const mitoApi = new IndexerGrpcMitoApi(MITO_API_ENDPOINT)
const VAULT_CONTRACT_ADDRESS = 'inj1..'
const { ido: launchpad } = await mitoApi.fetchVault({
contractAddress: VAULT_CONTRACT_ADDRESS,
})
console.log(launchpad)Fetch LP Holders
import { IndexerGrpcMitoApi } from '@injectivelabs/sdk-ts'
const MITO_API_ENDPOINT = 'https://k8s.mainnet.mito.grpc-web.injective.network' /** for mainnet */
const mitoApi = new IndexerGrpcMitoApi(MITO_API_ENDPOINT)
const VAULT_CONTRACT_ADDRESS = 'inj1..'
const STAKING_CONTRACT_ADDRESS = `inj1gtze7qm07nky47n7mwgj4zatf2s77xqvh3k2n8` /** staking contract address for mainnet */
const { holders } = await mitoApi.fetchLPHolders({
vaultAddress: VAULT_CONTRACT_ADDRESS,
stakingContractAddress: STAKING_CONTRACT_ADDRESS,
})
console.log(launchpad)Transactions
Subscribe to Spot Vault
Subscribe to Derivative Vault
Redeem Subscription
Last updated