For the complete documentation index, see llms.txt. This page is also available as Markdown.

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