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

πŸ†•isEnabled

webbtc.isEnabled() allows you to check if the WebBTC provider is enabled without explicitly enabling it through webbtc.enable() (which may cause a confirmation popup in some providers)

Method

function isEnabled(): Promise<boolean>;

Example

if(typeof window.webbtc !== 'undefined' && window.webbtc.isEnabled) {
    const isEnabled = await window.webbtc.isEnabled();
    // do something with the value
    console.log(isEnabled)
  }

Demo

Last updated

Was this helpful?