import {useSendTransaction, useWallets} from '@privy-io/react-auth';const {sendTransaction} = useSendTransaction();const {wallets} = useWallets();sendTransaction( { to: '0xE3070d3e4309afA3bC9a6b057685743CF42da77C', value: 100000 }, { address: wallets[0].address // Optional: Specify the wallet to use for signing. If not provided, the first wallet will be used. });
The address of the wallet to use for sending the transaction. Recommended when working with
external wallets to ensure reliable functionality. If not provided, the first wallet will be
used.