solana_sdk 0.1.1
solana_sdk: ^0.1.1 copied to clipboard
A pure Dart Solana client library for keys, transactions, programs, and JSON-RPC/WebSocket access.
0.1.1 #
- Fixed the Vote Program vote instruction ABI and introduced the
Votevalue type used byVoteProgram.vote. - Added support for the current durable nonce account layout and preserved the original message bytes when deserializing legacy transactions.
- Fixed stake lockup epoch decoding across the complete Solana u64 range.
- Enforced the v1 message 4096-byte limit and tightened legacy account index, signer, token account, mint, and binary layout validation.
- Preserved u64 RPC values without precision loss.
AccountInfonow exposeslamportsBigIntandrentEpochBigIntfor the complete range. - Added automatic WebSocket reconnection and restoration of active subscriptions, including fixes for subscribe/unsubscribe races.
- Tightened JSON-RPC response validation for protocol version, request IDs, batch responses, and malformed payloads.
Compatibility notes #
VoteProgram.votenow accepts aVoteobject containing slots, bank hash, and an optional timestamp.Lockup.epochnow returnsBigInt; its constructor continues to accept eitherintorBigInt.- The minimum supported Dart SDK is now 3.2, matching the package's runtime dependencies and documented requirements.
0.1.0 #
- Added Solana BIP-44 derivation paths and SLIP-0010 Ed25519 key derivation from seed bytes.
- Added RPC helpers for health, snapshot slots, max retransmit/shred insert slots, and token accounts by delegate.
- Added parsed token accounts by delegate and versioned transaction durable nonce detection helpers.
- Added Solana-style message and versioned transaction
sanitize()helpers. - Added structured sanitize exceptions, per-signature verification, verify-and-hash helpers, and durable nonce account lookup.
- Added SIMD-0385 v1 message support, including transaction config fields, versioned transaction wrapping, RPC version parsing, and fee lookup helpers.
- Prepared package metadata for open-source publication.
- Lowered runtime dependency constraints where compatible with the current implementation.
- Added public RPC export coverage tests.
- Kept JSON-RPC request content type stable across supported
httpversions.