We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
⚠️ The Docs have been moved to https://docs.ts.injective.network/querying/querying-api/streaming/streaming-indexer-account ⚠️
Example code snippets to stream from the indexer for subaccount related data.
import { IndexerGrpcAccountStream } from "@injectivelabs/sdk-ts"; import { getNetworkEndpoints, Network } from "@injectivelabs/networks"; const endpoints = getNetworkEndpoints(Network.TestnetK8s); const indexerGrpcAccountStream = new IndexerGrpcAccountStream( endpoints.indexer ); const subaccountId = "0x..."; const streamFn = indexerGrpcAccountStream.streamSubaccountBalance.bind( indexerGrpcAccountStream ); const callback = (subaccountBalance) => { console.log(subaccountBalance); }; const streamFnArgs = { subaccountId, callback, }; streamFn(streamFnArgs);
⚠️ DOCUMENTATION ⚠️