Skip to content

Documentation / react-auth / UseSolanaWalletsInterface

Interface: UseSolanaWalletsInterface

Hook to create and interact with Solana wallets. This currently only supports an embedded Solana wallet and no external wallets.



createWallet: () => Promise<Wallet>

Method to create an embedded Solana wallet for a user. This method will throw an error if the user already has an embedded Solana or Ethereum wallet. Currently, only embedded Solana wallets with automatic recovery are supported.



wallet {Wallet} the Solana linked account for the user.


wallets: ConnectedSolanaWallet[]

An array of the connected Solana wallets for the user. Currently, this will only contain the embedded Solana wallet if the user has created one.