Skip to content

Documentation / wagmi / usePrivyWagmi

Function: usePrivyWagmi()

usePrivyWagmi(): Object

Returns

Object

activeWallet

activeWallet: undefined = undefined

setActiveWallet

setActiveWallet: (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() from wagmi