Skip to content
pubscout

solana

0.32.0+1, released 7 months ago by cryptoplease.com

Dart implementation of Solana JSON RPC API client and tools

WASM-ready
$ flutter pub add solana
Source repository

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.

  • web3dart

    Choose web3dart if you are building on Ethereum instead of Solana.

Works with

Packages commonly used together with solana: ones it builds on, ones built on it, and its own family.