Appearance
Documentation / wagmi / usePrivyWagmi
Function: usePrivyWagmi()
usePrivyWagmi():
Object
Returns
Object
activeWalletactiveWallet:
undefined
=undefined
setActiveWalletsetActiveWallet: (
wallet
) =>Promise
<void
>Parameters
• wallet:
ConnectedWallet
Returns
Promise
<void
>
Deprecated
Instead:
- to set the active wallet use
const {setActiveWallet} = useSetActiveWallet()
from@privy-io/wagmi
- to view the current active wallet, use
const {address} = useAccount()
fromwagmi