Fuelet | Wallet on Fuel
  • Introduction
  • Intergration guide
    • Intro
    • Detecting wallet presence
    • Selecting Fuelet as a connector
    • Best practice
    • Audit and Security Assurance
  • Wallet API
    • Intro
    • Connecting
    • Getting current account
    • Getting current network
    • Signing messages
    • Sending transactions
    • Events
  • Resources
    • Media Kit
Powered by GitBook
On this page
  1. Wallet API

Getting current account

When the user is connected, the app can get the address of the connected account using the currentAccount method, which returns a Promise<string> - account address in Bech32 format.

const currentAccount = await fuel.currentAccount();
console.log("Current Account ", currentAccount);

Last updated 1 year ago