wallets
array from the useWallets
hook:wallets
array includes an object for all wallets a user has connected to your site.ready
ready
boolean returned by the useWallets
hook, or the ready
boolean returned by the useSolanaWallets
hook for Solana wallets.Concretely, ready
will be false
while Privy is determining what wallets are available for the user, and will be true
once Privy has settled on the current set of connected wallets.useWallets
and useSolanaWallets
vs. usePrivy
useWallets
, useSolanaWallets
, and usePrivy
hooks all return information about a user’s wallets. The key difference between the them is:useWallets
and useSolanaWallets
will return all connected wallets (EVM and Solana, respectively), which you can use to request signatures or take onchain actions (via transactions).usePrivy
will return all linked wallets, which you can use to verify that a user owns a given wallet address.usePrivy
hook.Otherwise, if your use case requires you to take actions on a connected wallet, such as getting its network or requesting a signature or transaction, you should use the wallets information returned by the useWallets
and useSolanaWallets
hook instead.