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.liquid

enable

To begin interacting with Liquid APIs you'll first need to enable the provider. Calling liquid.enable() will prompt the user for permission to use the Liquid capabilities of the browser. After that, you are free to call any of the other API methods.

Method

async function enable(): void;

Example

try {
  if(typeof window.liquid !== 'undefined') {
    await window.liquid.enable();
  }
}
catch(error) {
  // User denied permission or cancelled 
  console.log(error);
}

Last updated 1 year ago

Was this helpful?