โšกAccessing Alby via LndHub

If you would like to send payments from your backend application, you can connect to your personal Alby account using the LndHub API.

This is only possible using an Alby hosted account, as these accounts are built on the LndHub accounting system.

In order to connect to your account via the LndHub API, you'll need your Alby account's connection credentials, which is the same as connecting a mobile wallet to your Alby account. We've created a guide here.

Authentication

Your connection credentials are in the following format: lndhub://user:password@domain and can be used to authenticate with the Alby LndHub service. The domain is Alby's LndHub server, https://ln.getalby.com/.

// POST https://ln.getalby.com/auth
{
  "login": "04f8996da763b7a969b1",
  "password": "5e884898da28047151d0"
}

Paying an Invoice

// Don't forget to add the Authorization header!
// Authorization: Bearer your_access_token_here
// POST https://ln.getalby.com/payinvoice
{
  "invoice": "lnbc1...."
}

API Documentation

The documentation for Alby's LndHub API and all available methods can be read here: https://ln.getalby.com/swagger/index.html

You can also read more about the LndHub API here.

Last updated

Logo

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