With access to the user address and the connection authorized, you can request the user's signature using fuel.signMessage
.
const accounts = await fuel.accounts();
const account = accounts[0];
const wallet = await fuel.getWallet(account);
const signedMessage = await wallet.signMessage(message);
console.log("Message signature", signedMessage);
Was this page helpful?