Helius SDK - v3.4.0
    Preparing search index...

    Type Alias HeliusClient

    HeliusClient: ResolvedHeliusRpcApi & HeliusRpcAccess & {
        admin: AdminClient;
        auth: AuthClient;
        enhanced: EnhancedTxClientLazy;
        getAllProgramAccounts: GetAllProgramAccountsFn;
        getAllTokenAccountsByOwner: GetAllTokenAccountsByOwnerFn;
        getAsset: GetAssetFn;
        getAssetBatch: GetAssetBatchFn;
        getAssetProof: GetAssetProofFn;
        getAssetProofBatch: GetAssetProofBatchFn;
        getAssetsByAuthority: GetAssetsByAuthorityFn;
        getAssetsByCreator: GetAssetsByCreatorFn;
        getAssetsByGroup: GetAssetsByGroupFn;
        getAssetsByOwner: GetAssetsByOwnerFn;
        getNftEditions: GetNftEditionsFn;
        getPriorityFeeEstimate: GetPriorityFeeEstimateFn;
        getProgramAccountsV2: GetProgramAccountsV2Fn;
        getSignaturesForAsset: GetSignaturesForAssetFn;
        getTokenAccounts: GetTokenAccountsFn;
        getTokenAccountsByOwnerV2: GetTokenAccountsByOwnerV2Fn;
        getTransactionsForAddress: GetTransactionsForAddressFn;
        getTransfersByAddress: GetTransfersByAddressFn;
        parsedEvents: ParsedEventsClient;
        searchAssets: SearchAssetsFn;
        stake: StakeClientLazy;
        tx: TxHelpersLazy;
        wallet: WalletClient;
        webhooks: {
            create(params: CreateWebhookRequest): Promise<Webhook>;
            delete(webhookID: string): Promise<boolean>;
            get(webhookID: string): Promise<Webhook>;
            getAll(): Promise<Webhook[]>;
            toggle(webhookID: string, active: boolean): Promise<Webhook>;
            update(webhookID: string, params: UpdateWebhookRequest): Promise<Webhook>;
        } & WebhookClient;
        ws: WsAsync;
        zk: ZkClientLazy;
    }

    The main Helius SDK client. Provides access to all Helius and Solana RPC methods, DAS (Digital Asset Standard) queries, priority fee estimation, webhooks, Parsed Events transaction parsing, smart transaction helpers, WebSocket subscriptions, staking, and ZK compression.

    All standard Solana RPC methods (e.g. getBalance, getSlot) are available directly on this object via a Proxy that delegates to the underlying @solana/kit RPC client and sends each request automatically. The unwrapped kit client is available as kitRpc.

    Sub-clients (webhooks, parsedEvents, enhanced, tx, ws, stake, zk, wallet, admin) are lazily loaded on first access to keep the initial bundle minimal.

    Type Declaration

    • admin: AdminClient

      Admin API client. Requires an API key.

    • auth: AuthClient

      Auth client for agentic signup, checkout, and account management.

    • enhanced: EnhancedTxClientLazy

      Enhanced transaction parsing client. Requires an API key.

      The Enhanced Transactions API is in maintenance mode. Use parsedEvents instead: getTransactions → parsedEvents.parseTransactions, getTransactionsByAddress → parsedEvents.getTransactionHistory (defaults differ: confirmed commitment, 100-item pages, successful transactions only unless status: "any"), or parsedEvents.scan for a program address or server-side filtering by instruction or mint. Parsed Events is mainnet-only; devnet code can keep using this client. See https://www.helius.dev/docs/parsed-events/guides/migrate-from-enhanced-transactions

    • getAllProgramAccounts: GetAllProgramAccountsFn

      Auto-paginating variant that fetches all program accounts across pages.

    • getAllTokenAccountsByOwner: GetAllTokenAccountsByOwnerFn

      Auto-paginating variant that fetches all token accounts for an owner.

    • getAsset: GetAssetFn

      Fetch a single asset by its ID (mint address).

    • getAssetBatch: GetAssetBatchFn

      Fetch multiple assets by their IDs in a single batch request.

    • getAssetProof: GetAssetProofFn

      Get the Merkle proof for a compressed asset.

    • getAssetProofBatch: GetAssetProofBatchFn

      Get Merkle proofs for multiple compressed assets in a batch.

    • getAssetsByAuthority: GetAssetsByAuthorityFn

      List assets by their update authority address.

    • getAssetsByCreator: GetAssetsByCreatorFn

      List assets created by a specific creator address.

    • getAssetsByGroup: GetAssetsByGroupFn

      List assets belonging to a specific group (e.g. a collection).

    • getAssetsByOwner: GetAssetsByOwnerFn

      List all assets owned by a wallet address.

    • getNftEditions: GetNftEditionsFn

      Get print editions for an NFT master edition.

    • getPriorityFeeEstimate: GetPriorityFeeEstimateFn

      Estimate priority fees for a transaction or set of account keys.

    • getProgramAccountsV2: GetProgramAccountsV2Fn

      Paginated version of getProgramAccounts with cursor-based pagination.

    • getSignaturesForAsset: GetSignaturesForAssetFn

      Get transaction signatures related to an asset.

    • getTokenAccounts: GetTokenAccountsFn

      Get token accounts filtered by mint or owner.

    • getTokenAccountsByOwnerV2: GetTokenAccountsByOwnerV2Fn

      Paginated version of getTokenAccountsByOwner with cursor-based pagination.

    • getTransactionsForAddress: GetTransactionsForAddressFn

      Get transactions for a specific address with rich filtering and pagination.

    • getTransfersByAddress: GetTransfersByAddressFn

      Get parsed token and native SOL transfers for a specific address with rich filtering and pagination.

    • parsedEvents: ParsedEventsClient

      Parsed Events client: decoded instructions, transfers, and summaries for transactions and address history, plus server-side history scans by program instruction or token mint. Requires an API key. Mainnet only.

    • searchAssets: SearchAssetsFn

      Search for assets using flexible filters (owner, creator, collection, etc.).

    • stake: StakeClientLazy

      Helius native staking helpers (stake, unstake, withdraw to the Helius validator).

    • tx: TxHelpersLazy

      Smart transaction helpers for building, signing, and sending transactions with automatic compute budget and priority fees.

    • wallet: WalletClient

      Wallet API client. Requires an API key.

    • webhooks: {
          create(params: CreateWebhookRequest): Promise<Webhook>;
          delete(webhookID: string): Promise<boolean>;
          get(webhookID: string): Promise<Webhook>;
          getAll(): Promise<Webhook[]>;
          toggle(webhookID: string, active: boolean): Promise<Webhook>;
          update(webhookID: string, params: UpdateWebhookRequest): Promise<Webhook>;
      } & WebhookClient

      Webhook management client. Requires an API key.

    • ws: WsAsync

      WebSocket RPC subscriptions (logs, slots, signatures, programs, accounts).

    • zk: ZkClientLazy

      ZK compression RPC methods for Light Protocol compressed accounts and tokens.