Pub

Access Solana RPC API through Dart SDK, the style completely imitates the original design, easy to use, and helps your Flutter application connect to the Solana blockchain!

Features

Solana RPC API for Dart SDK.

Getting started

install

Usage

final api = SolanaRpcApi(clusterApiUrl(Cluster.mainnetBeta), '7jrFHLtDxAqPsc3S7nd3F1wAc99xqkD9wuQ38JtdMoej');
final tokenAccountsByOwner = await api.getTokenAccountsByOwner();

print(tokenAccountsByOwner);

More example see https://github.com/Circelpod/solana_rpc_sdk_flutter

Additional information

TODO: Tell users more about the package: where to find more information, how to contribute to the package, how to file issues, what response they can expect from the package authors, and more.

TODO

  • x getAccountInfo
  • x getBalance
  • [] getBlock
  • [] getBlockHeight
  • [] getBlockProduction
  • [] getBlockCommitment
  • [] getBlocks
  • [] getBlocksWithLimit
  • [] getBlockTime
  • [] getClusterNodes
  • [] getEpochInfo
  • [] getEpochSchedule
  • [] getFeeForMessage
  • [] getFirstAvailableBlock
  • [] getGenesisHash
  • [] getHealth
  • [] getHighestSnapshotSlot
  • [] getIdentity
  • [] getInflationGovernor
  • [] getInflationRate
  • [] getInflationReward
  • [] getLargestAccounts
  • [] getLatestBlockhash
  • [] getLeaderSchedule
  • [] getMaxRetransmitSlot
  • [] getMaxShredInsertSlot
  • [] getMinimumBalanceForRentExemption
  • [] getMultipleAccounts
  • [] getProgramAccounts
  • [] getRecentPerformanceSamples
  • [] getSignaturesForAddress
  • [] getSignatureStatuses
  • [] getSlot
  • [] getSlotLeader
  • [] getSlotLeaders
  • [] getStakeActivation
  • x getSupply
  • x getTokenAccountBalance
  • [] getTokenAccountsByDelegate
  • x getTokenAccountsByOwner
  • [] getTokenLargestAccounts
  • [] getTokenSupply
  • x getTransaction
  • x getTransactionCount
  • x getVersion
  • x getVoteAccounts
  • [] isBlockhashValid
  • x minimumLedgerSlot
  • x requestAirdrop
  • [] sendTransaction
  • [] simulateTransaction

publish

dart pub publish --dry-run

Libraries

cluster
get_account_Info
get_balance
get_supply
get_token_account_balance
get_transaction
get_version
get_vote_accounts
http_client
rpc_method
rpc_response
solana_rpc_api
solana_rpc_sdk_flutter
A predictable state management library for Dart.
token
token_accounts_by_owner