BTCPay Server Plugin
Use Blink as a lightning provider in BTCPay Server.
Add the default wallet or select between BTC and Stablesats.
Available in BTCPay Server v1.12.0 and later.
How to Activate the Plugin
-
login to the BTCPay Server instance as an admin user
-
select
Manage Plugins
in the left sidebar and install the Blink plugin: -
restart the BTCPay Server instance.
How to Connect
-
Create an API key on dashboard.blink.sv
-
log in with your registered email or a phone number or create a new account if you are new to Blink
-
select API Keys in the menu on the left
-
create an API key with the
+
button -
for the most secure option choose the
Read
andReceive
scopes - this will allow to create invoices and receive payments to your Blink account, but will not be allowed to send payments with the BTCPay Server plugin.
Currently using only theRead
scope also works, but it is better to add theReceive
scope as well to ensure compatibility in the future when the plugin is updated.
Only use theWrite
scope if you are planning to send payments from BTCPay Server for example withPull Payments
or connecting bolt cards. Be aware that the BTCPay Server admin can access your API key therefore could spend your balance when using theWrite
scope. The best is to use a self-hosted BTCPay Server instance for this purpose. -
the BTCPay connection strings contain the API key and the ID of the chosen wallet in the format ready to be pasted in the BTCPay Server interface:
-
-
the option to connect to their Blink will be available for logged in users under:
- in case of a new store:
Set up a lightning node
→Use custom node
- in case of an existing store:
Lightning
→Settings
→Change connection
→Use custom node
- in case of a new store:
-
the connection string for BTCPay Server is minimum:
type=blink;api-key=blink_...
-
If adding only the API key the default wallet will be used on the Blink server (https://api.blink.sv/graphql).
-
the default wallet can be changed in the Blink app under
Settings
→Default wallet
, but this would only affect the BTCPay Plugin when the connection string is reloaded.
If using the USD wallet the requested invoice amount needs to be at least 1 USDcent even if you are using another fiat denomination or SATS.
Specify the BTC or USD Wallet (Optional)
-
to use a specific wallet (BTC or USD) use the specific BTCPay connection string with the Wallet Id included or copy the chosen the Wallet Id from your dashboard.blink.sv
-
use the full connection string as:
type=blink;server=https://api.blink.sv/graphql;api-key=blink_...;wallet-id=xyz
-
can also set a custom server for development or to use an other instance of the Galoy backend
Finalize the Connection
-
Click
Test connection
to verify the connectionThe message:
is expected as the Blink plugin is connected to a Blink account, not a lightning node directly, but the connection is working.
-
Click
Save
to save the connection.
Enjoy the Benefits of Using Blink
- instant inbound lightning liquidity
- no channel management
- no need to worry about backups
- get notified of the received payments in the Blink app
Source Code
github.com/Kukks/BTCPayServerPlugins/tree/master/Plugins/BTCPayServer.Plugins.Blink