Detecting wallet presence
import {
Fuel,
FuelWalletConnector,
FueletWalletConnector,
} from "@fuel-wallet/sdk";
const fuel = new Fuel({
connectors: [
new FueletWalletConnector(),
new FuelWalletConnector(),
],
});const fuel = new Fuel({connectors: [new FueletWalletConnector()]});
const connectors = await window.fuel.connectors();
const fueletWalletInstalled = connectors.find((c) => {
return c.name === 'Fuelet Wallet';
})?.installed ?? false;Last updated