Skip to content

HeliusProvider

SIP Protocol API Reference v0.7.4


SIP Protocol API Reference / 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.

new HeliusProvider(config): HeliusProvider

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:15766

HeliusProviderConfig

HeliusProvider

readonly name: "helius" = "helius"

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:15761

Provider name for logging/debugging

SolanaRPCProvider.name

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.

string

Promise<TokenAsset[]>

SolanaRPCProvider.getAssetsByOwner


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.

string

string

Promise<bigint>

SolanaRPCProvider.getTokenBalance


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.

boolean

SolanaRPCProvider.supportsSubscriptions