Solana dependencies on yarn
next.config.ts
file:useLogin
hook from the @privy-io/react-auth
package. This hook provides a function to log in users.
useSolanaWallets
hook from @privy-io/react-auth
. This hook provides a createWallet
function to create an embedded wallet.
useSignMessage
, useSignTransaction
, and useSendTransaction
hooks to sign messages and transactions with embedded wallets. You can also use linked EOA wallets directly for signing messages and transactions.
useSignMessage
hook:
useSignTransaction
hook:
useSendTransaction
hook:
signMessage
method from the wallet object: