solana
0.32.0+1, released 7 months ago by cryptoplease.com
Dart implementation of Solana JSON RPC API client and tools
What it does
Provides a Dart and Flutter interface for interacting with the Solana JSON RPC API and subscription client. It includes support for HD key generation, transaction signing, key importing via BIP39 seed phrases, and interacting with common Solana programs like the System and Token programs.
AI-written summary of version 0.32.0+1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building a Flutter or Dart app that needs to connect to the Solana blockchain
- You need to sign and send transactions, generate keypairs, or listen to subscription updates on Solana
Skip it when
- Your app interacts with blockchains other than Solana
- You only need local cryptographic utilities without blockchain integration
Strengths
- Complete implementation of the Solana JSON RPC API and subscription client
- Supports HD derivation and BIP39 seed phrases for key management
- Built-in support for multiple native programs like System, Token, Memo, and Stake programs
Weaknesses
- Requires external test validator tools (Solana Tool Suite) for running tests locally
- Focused exclusively on the Solana ecosystem
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- Yes (build_runner)
- Direct dependencies
- 12
Requires installing Solana Tool Suite or using a Docker image if running local test validators.
final rpcClient = RpcClient('https://api.mainnet-beta.solana.com');
final balance = await rpcClient.getBalance('your_wallet_address');Alternatives
Packages that do the same job and could replace solana.
Works with
Packages commonly used together with solana: ones it builds on, ones built on it, and its own family.
- json_annotationsolana depends on itProvides annotations for json_serializable to generate JSON (de)serialization code.
- typed_datasolana depends on itUtility functions and classes for easier work with dart:typed_data lists.
- web_socket_channelsolana depends on itCross‑platform WebSocket channel wrapper for Dart
- convertsolana depends on itEncoders and decoders for converting between different data representations.
- freezed_annotationsolana depends on itAnnotations for the freezed code-generator.
- cryptographysolana depends on itCross‑platform cryptographic algorithms for Dart and Flutter.
- decimalsolana depends on itArbitrary-precision decimal arithmetic for Dart
- bip39solana depends on itDart implementation of Bitcoin BIP39 Mnemonic code for generating deterministic keys.