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 Name | Description |
---|---|
@solana/accounts | fetching and decoding accounts |
@solana/addresses | work with addresses / public keys |
@solana/assertions | |
@solana/build-scripts | |
@solana/codecs-core | encode and decode to and from Uint8Array |
@solana/codecs-data-structures | |
@solana/codecs-numbers | |
@solana/codecs-strings | |
@solana/codecs | |
@solana/compat | use web3.js v1 classes |
@solana/crypto-impl | |
@solana/errors | use to understand error messages |
@solana/fast-stable-stringify | |
@solana/fetch-impl | |
@solana/functional | the pipe function |
@solana/instructions | transaction instructions |
@solana/keys | generate, validate and manipulate addresses |
@solana/library | |
@solana/options | use javascript like rust |
@solana/programs | helps identify custom program errors |
@solana/promises | |
@solana/react | React hooks for wallets |
@solana/rpc | RPC 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/signers | utilities for signing messages and transactions and creating keypairs |
@solana/subscribables | |
@solana/sysvars | helpers for the 11 system variables |
@solana/test-config | |
@solana/test-matchers | |
@solana/text-encoding-impl | |
@solana/transaction-confirmation | |
@solana/transaction-messages | |
@solana/transactions | compiliing, signing and sending transaction |
@solana/tsconfig | |
@solana/webcrypto-ed25519-polyfill | use to polyfill when Ed25519 not available |
@solana/ws-impl |