Connect Alby to Hash Commander
To rent hashrate from other miners, the dashboard pays in sats by the minute from your Alby wallet. To sell yours, you get paid at your Alby Lightning address. This guide shows both connections, step by step.
A "Nostr Wallet Connect" (NWC) code that lets the dashboard pay, only up to the limit you choose.
Your Lightning address. It only works for receiving: nobody can take sats out with it.
Have Alby Hub
NWC connections are made in Alby Hub, Alby's Lightning wallet. If you do not have it yet:
Create the Alby account
Go to getalby.com and create your account. That is also where you choose your Lightning address (name@getalby.com).
Open your Alby Hub
Follow Alby's instructions to activate Alby Hub: in Alby's cloud (simpler) or on your own computer. Put some sats in it for the rentals.
If the Hub runs on your computer, that computer has to stay on during rentals, otherwise the wallet does not respond.
Create the NWC code in Alby Hub
Menu names may change a little between Alby Hub versions.
Open the connections
In Alby Hub, open Connections and click Add Connection.
Give it a name
Type a name you will recognise later, for example Hash Commander.
Choose the permissions
Choose custom permissions and leave only these three on. They are the ones the dashboard uses:
- ✓Send payments: to pay for the rentals.
- ✓Read your balance: the dashboard confirms the connection and shows the balance.
- ✓Read node info: to show the wallet name.
No other permission is needed.
Set a spending limit
Under Budget choose an amount and the renewal period, for example 2000 sats per day. It is the most the dashboard can spend, even if something goes wrong.
Start with a little. You can raise the limit later without changing anything in the dashboard.
Copy the code
Click Next / Create. The Hub shows the connection code, which starts with nostr+walletconnect://. Click Copy.
Treat it like a password. Whoever has this code can spend up to the limit you set. Do not send it to anyone or publish it.
Paste the code in the dashboard
Open the Hashrate market
In the Hash Commander dashboard open the Hashrate market tab and choose Buy hashrate.
Paste the code and connect
In the Your wallet for buying (NWC) box, paste the code and click Connect wallet.
Your wallet for buying (NWC)nostr+walletconnect://…Connect walletIn your wallet, create a "Nostr Wallet Connect" connection with a spending limit and paste the code here. The code stays only on this PC.Check that it is connected
Within a few seconds the box changes and shows the wallet name and balance:
✓ Wallet connected · Alby Hub · balance 25,000 satsYou can now rent: the dashboard pays for each period of a few minutes only while the hashrate reaches your pool.
Receive at your Lightning address
Copy your Lightning address
In Alby Hub or at getalby.com, copy your Lightning address, which looks like name@getalby.com.
Put it in your offer
In the dashboard, under Hashrate market › Sell mine, paste it in step 4. Your Lightning address (where you get paid) and click Verify.
✓ Valid address should appear. Then click Publish offer.
Your machines only switch pool after the first payment arrives. If the renter does not pay, the rental ends and the machines stay as they were.
Security
Common problems
"The wallet did not respond… check that the NWC code has permission to pay"
The dashboard could not read the balance. In Alby Hub, open the connection and check that it has Send payments and Read your balance. If the Hub runs on your computer, check that it is on and online. If that does not solve it, create a new connection and paste the new code.
The code is not accepted
It must start exactly with nostr+walletconnect://. Copy it again with the Copy button, with no spaces at the start or end.
Payments stop midway through a rental
You reached the budget limit or ran out of balance. The rental ends by itself and you pay nothing more. Raise the budget or the balance in Alby Hub before the next rental.
Can I use another wallet instead of Alby?
Yes. Any wallet with Nostr Wallet Connect will do, for example LNbits, Coinos, Primal or Zeus. The steps are similar: create an NWC connection with a spending limit and paste the code.