solana_kit_helius 0.2.1 copy "solana_kit_helius: ^0.2.1" to clipboard
solana_kit_helius: ^0.2.1 copied to clipboard

Helius SDK for the Solana Kit Dart SDK.

solana_kit_helius #

pub package docs CI coverage

Helius SDK for the Solana Kit Dart SDK. A Dart port of the Helius TypeScript SDK, providing DAS API, enhanced transactions, webhooks, smart transactions, ZK compression, staking, wallet API, WebSocket subscriptions, and auth.

Features #

  • DAS API - Digital Asset Standard methods for querying assets, proofs, and metadata
  • Enhanced Transactions - Parsed transaction history with human-readable types
  • Webhooks - Create, manage, and delete webhook subscriptions
  • Smart Transactions - Optimized transaction building with compute unit estimation and priority fees
  • ZK Compression - Compressed account and token operations via Light Protocol
  • Staking - Create stake, unstake, and withdraw transactions via Helius validators
  • Wallet API - Identity resolution, balances, history, and transfers
  • WebSockets - Real-time subscription support
  • Auth - Project and API key management
  • Priority Fees - Estimate priority fees for transactions
  • RPC V2 - Enhanced RPC methods with pagination

Installation #

dart pub add solana_kit_helius

If you're working inside the solana_kit monorepo, workspace resolution uses local packages automatically.

Documentation #

Usage #

import 'package:solana_kit_helius/solana_kit_helius.dart';

final helius = createHelius(
  HeliusConfig(apiKey: 'your-api-key'),
);

// DAS API
final asset = await helius.das.getAsset(
  GetAssetRequest(id: 'asset-id'),
);

// Priority fees
final fees = await helius.priorityFee.getPriorityFeeEstimate(
  GetPriorityFeeEstimateRequest(
    accountKeys: ['account-key'],
  ),
);

// Enhanced transactions
final txns = await helius.enhanced.getTransactions(
  GetTransactionsRequest(transactions: ['tx-sig']),
);

Configuration #

// Mainnet (default)
final helius = createHelius(
  HeliusConfig(apiKey: 'your-api-key'),
);

// Devnet
final helius = createHelius(
  HeliusConfig(
    apiKey: 'your-api-key',
    cluster: HeliusCluster.devnet,
  ),
);

// Custom HTTP client (useful for testing)
import 'package:http/http.dart' as http;

final helius = createHelius(
  HeliusConfig(apiKey: 'your-api-key'),
  client: http.Client(),
);

Example #

Use example/main.dart as a runnable starting point for solana_kit_helius.

  • Import path: package:solana_kit_helius/solana_kit_helius.dart
  • This section is centrally maintained with mdt to keep package guidance aligned.
  • After updating shared docs templates, run docs:update from the repo root.

Maintenance #

  • Validate docs in CI and locally with docs:check.
  • Keep examples focused on one workflow and reference package README sections for deeper API details.
0
likes
0
points
165
downloads

Publisher

unverified uploader

Weekly Downloads

Helius SDK for the Solana Kit Dart SDK.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http, solana_kit_errors, web_socket_channel

More

Packages that depend on solana_kit_helius