The Solana wallet connectors will generally have a couple of extra methods. Specifically, in order to interact using public actions with Solana.
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.
Method | Description |
---|---|
getConnection(): Promise<Connection> | Retrieves the RPC connection |
getSigner(): Promise<ISolana> | Retrieves the solana signer for the wallet. |
You can find examples of how to interact with Solana wallets in the examples section:
The Solana wallet connectors will generally have a couple of extra methods. Specifically, in order to interact using public actions with Solana.
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.
Method | Description |
---|---|
getConnection(): Promise<Connection> | Retrieves the RPC connection |
getSigner(): Promise<ISolana> | Retrieves the solana signer for the wallet. |
You can find examples of how to interact with Solana wallets in the examples section: