Packages

Packages allow you to use only parts of Solana Web3.js that your application needs.

Why?

  • Smaller size
  • Less room for error

List

Package NameDescription
@solana/accountsfetching and decoding accounts
@solana/addresseswork with addresses / public keys
@solana/assertions
@solana/build-scripts
@solana/codecs-coreencode and decode to and from Uint8Array
@solana/codecs-data-structures
@solana/codecs-numbers
@solana/codecs-strings
@solana/codecs
@solana/compatuse web3.js v1 classes
@solana/crypto-impl
@solana/errorsuse to understand error messages
@solana/fast-stable-stringify
@solana/fetch-impl
@solana/functionalthe pipe function
@solana/instructionstransaction instructions
@solana/keysgenerate, validate and manipulate addresses
@solana/library
@solana/optionsuse javascript like rust
@solana/programshelps identify custom program errors
@solana/promises
@solana/reactReact hooks for wallets
@solana/rpcRPC utilities
@solana/rpc-api
@solana/rpc-graphql
@solana/rpc-parsed-types
@solana/rpc-spec-types
@solana/rpc-spec
@solana/rpc-subscriptions-api
@solana/rpc-subscriptions-channel-websocket
@solana/rpc-subscriptions-spec
@solana/rpc-subscriptions
@solana/rpc-transformers
@solana/rpc-transport-http
@solana/rpc-types
@solana/signersutilities for signing messages and transactions and creating keypairs
@solana/subscribables
@solana/sysvarshelpers for the 11 system variables
@solana/test-config
@solana/test-matchers
@solana/text-encoding-impl
@solana/transaction-confirmation
@solana/transaction-messages
@solana/transactionscompiliing, signing and sending transaction
@solana/tsconfig
@solana/webcrypto-ed25519-polyfilluse to polyfill when Ed25519 not available
@solana/ws-impl