Package references
solana-extension
The package that gives access to an Extension that allows integrating Solana/web3.js to our client.
Functions
SolanaExtension
method
A method that, when passed to the client instance, injects the following modules into it:
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 | () => Connection | Create a @solana/web3.js Connection object to query the blockchain. |
Types
ISolanaExtension
type
Type of the solana extension.
Was this page helpful?