Solana Interactions
Solana Wallets
Introduction
The Solana wallet connectors will generally have a couple of extra methods. Specifically, in order to interact using public actions with Solana.
Checking if a wallet is a Solana wallet
You can use the isSolanaWallet
helper method to check if a wallet is a Solana wallet. That way, TypeScript will know which methods are available to you.
Solana Wallet
Method | Description |
---|---|
getConnection(): Promise<Connection> | Retrieves the RPC connection |
getSigner(): Promise<ISolana> | Retrieves the solana signer for the wallet. |
Examples
You can find examples of how to interact with Solana wallets in the examples section:
- Send a Legacy Solana Transaction (only available for Solana embedded wallets).
- Send a Versioned Solana Transaction (only available for Solana embedded wallets).
Was this page helpful?