useAccount

Returns public key (account address) and connection status flag

Return value

{
        publicKey: string, // returns account's public key
        connected: boolean // flag if the account is connected to the dApp
}

Last updated