The package that gives access to an Extension that allows integrating Solana/web3.js to our client.Documentation Index
Fetch the complete documentation index at: https://docs.dynamic.xyz/docs/llms.txt
Use this file to discover all available pages before exploring further.
Functions
SolanaExtension method
solana module
Provides methods to create solana connection and signer for solana wallets.
The reference types below are simplified for the sake of readability. See the
type specification for details.
| Property | Type | Description |
|---|---|---|
getClient | (props: { wallet: Wallet }) => ISolanaSigner | Crate a Signer for the wallet that allows for sign messages and transactions. |
getConnection | (connectionConfig?: ConnectionConfig | Commitment) => Connection | Create a @solana/web3.js Connection object to query the blockchain. Accepts an same argument that is Solana’s Connection class second argument. |
simulateSVMTransaction | (params: { transaction: Transaction | VersionedTransaction; type: 'SignTransaction' | 'SendTransaction' }) => Promise<SimulateTransactionResponse> | Simulates a Solana transaction to preview effects before sending. Supports both legacy and versioned transactions. Uses the primary wallet. |