Hash Commander
← All guides
Hashrate market · Lightning

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.

To buy hashrate
nostr+walletconnect://…

A "Nostr Wallet Connect" (NWC) code that lets the dashboard pay, only up to the limit you choose.

To sell hashrate
name@getalby.com

Your Lightning address. It only works for receiving: nobody can take sats out with it.

Before you start

Have Alby Hub

NWC connections are made in Alby Hub, Alby's Lightning wallet. If you do not have it yet:

  1. Create the Alby account

    Go to getalby.com and create your account. That is also where you choose your Lightning address (name@getalby.com).

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

Part 1 · buying

Create the NWC code in Alby Hub

Menu names may change a little between Alby Hub versions.

  1. Open the connections

    In Alby Hub, open Connections and click Add Connection.

  2. Give it a name

    Type a name you will recognise later, for example Hash Commander.

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

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

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

  1. Open the Hashrate market

    In the Hash Commander dashboard open the Hashrate market tab and choose Buy hashrate.

  2. 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 wallet
    In your wallet, create a "Nostr Wallet Connect" connection with a spending limit and paste the code here. The code stays only on this PC.
  3. 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 sats

    You can now rent: the dashboard pays for each period of a few minutes only while the hashrate reaches your pool.

Part 2 · selling

Receive at your Lightning address

  1. Copy your Lightning address

    In Alby Hub or at getalby.com, copy your Lightning address, which looks like name@getalby.com.

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

The code stays only on your PCThe dashboard stores it on this computer and sends it nowhere else.
The limit protects youEven with the code, the dashboard never spends more than the budget you set in Alby Hub.
Disconnecting is immediateIn the dashboard click Disconnect. To cut it off for good, delete the connection under Connections in Alby Hub.

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.