Skip to main content

React Hooks for Solana

Web3Auth provides a set of React hooks for basic Solana wallet operations. These hooks are designed to simplify common Solana interactions in your React app.

info

For advanced Solana features, you should use @solana/web3.js on top of the hooks provided.

Solana Hooks

Hook NameDescription
useSignAndSendTransactionSign and send a Solana transaction.
useSignMessageSign a message with the Solana wallet.
useSignTransactionSign a Solana transaction (without sending).
useSolanaWalletAccess Solana wallet state and utilities.

Further code and advanced usage should be implemented using Solana's web3.js library as needed.