HeliusProvider
SIP Protocol API Reference v0.7.4
SIP Protocol API Reference / HeliusProvider
Class: HeliusProvider
Section titled “Class: HeliusProvider”Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:15760
Helius RPC Provider implementation
Uses Helius DAS API for efficient token queries. Recommended for production deployments.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new HeliusProvider(
config):HeliusProvider
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:15766
Parameters
Section titled “Parameters”config
Section titled “config”Returns
Section titled “Returns”HeliusProvider
Properties
Section titled “Properties”
readonlyname:"helius"="helius"
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:15761
Provider name for logging/debugging
Implementation of
Section titled “Implementation of”Methods
Section titled “Methods”getAssetsByOwner()
Section titled “getAssetsByOwner()”getAssetsByOwner(
owner):Promise<TokenAsset[]>
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:15773
Get all token assets owned by an address using DAS API
Uses getAssetsByOwner for comprehensive asset information including NFTs and fungible tokens with metadata.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<TokenAsset[]>
Implementation of
Section titled “Implementation of”SolanaRPCProvider.getAssetsByOwner
getTokenBalance()
Section titled “getTokenBalance()”getTokenBalance(
owner,mint):Promise<bigint>
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:15779
Get token balance for a specific mint using Balances API
More efficient than getAssetsByOwner when you only need one token’s balance.
Parameters
Section titled “Parameters”string
string
Returns
Section titled “Returns”Promise<bigint>
Implementation of
Section titled “Implementation of”SolanaRPCProvider.getTokenBalance
supportsSubscriptions()
Section titled “supportsSubscriptions()”supportsSubscriptions():
boolean
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:15793
Check if provider supports real-time subscriptions
Helius supports webhooks for real-time notifications, but that requires server-side setup. Client-side subscriptions are not directly supported.
Returns
Section titled “Returns”boolean