Metafi React SDK
Developer PortalMore Docs ⏷About Us ⏷Help & Resources ⏷
v1.2.8 (Latest)
v1.2.8 (Latest)
  • What's new in this version?
  • Get Started
  • SDK Reference
    • Provider Initialisation
    • Login
    • ShowWallet
    • HideWallet
    • TransferTokens
    • CallGenericReadFunction
    • CallGenericWriteFunction
    • CallGaslessFunction
    • Checkout
    • RegisterToken
    • RetrieveUser
    • Disconnect
  • Constants
    • Chain
    • Asset
  • UI Customization
Powered by GitBook
On this page
  • Description
  • Details
  • Signature
  • Arguments
  • Return Value
  • Example
  1. SDK Reference

ShowWallet

This function triggers a modal displaying an overview of the user's wallet

Description

Function to display the user's wallet, which shows an overview of their balance and owned NFTs, and also allows them to top-up their wallet with fiat or an existing web3 wallet.

Details

Signature

ShowWallet()

Arguments

None

Return Value

None

Example

import { useMetafi } from '@metafi/metafi-react-package';

function displayWallet(userIdentifier) {
    const { ShowWallet } = useMetafi();
    
    return (
        <>
           <button onClick={()=>ShowWallet()}>Show Wallet</button>
        </>
    );
};
PreviousLoginNextHideWallet

Last updated 2 years ago