Documentation
Hooks
useObviousWallet

useObviousWallet

Hook for getting current state of Embed Wallet.

import { useObviousWallet } from '@itsobvioustech/embed';
 
// Ideally in your Header or any place you want users to access the account
export const YourDapp = () => {
  const {open, close} = useObviousWallet()
};
Return Value
  • open

    function
    opens the embed modal
  • isOpen

    boolean
    current state of the modal
  • close

    function
    closes the embed modal