Alby Developer Guide
User GuideDeveloper Portal
Alby Browser Extension APIs
Alby Browser Extension APIs
  • ๐Ÿ“šOverview
  • window.webln
    • ๐Ÿ‘€See Webln.guide
  • window.liquid
    • enable
    • ๐Ÿ†•isEnabled
    • getAddress
    • signPset
    • ๐Ÿ†•on
    • ๐Ÿ†•off
  • window.nostr
    • getPublicKey
    • signEvent
    • nip04.encrypt
    • nip04.decrypt
    • signSchnorr
    • ๐Ÿ†•on
    • ๐Ÿ†•off
  • window.webbtc
    • enable
    • ๐Ÿ†•isEnabled
    • getAddress
    • signPsbt
    • ๐Ÿ†•on
    • ๐Ÿ†•off
  • window.alby
    • enable
    • ๐Ÿ†•isEnabled
    • โž•Adding accounts
Powered by GitBook
LogoLogo

Our content

  • Website
  • Blog
  • GitHub

Follow us

  • Nostr
  • Twitter / X
  • Youtube

Contact us

  • E-mail
  • Community Chat
  • Open Hours

Your bitcoin & nostr companion / from ๐Ÿ with ๐Ÿงก

On this page

Was this helpful?

  1. window.webbtc

isEnabled

Last updated 1 year ago

Was this helpful?

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

๐Ÿ†•