monero.loveA little love for the network.
← All guides

Monero / Wallets / Privacy

How to Use Monero Subaddresses

Create Monero subaddresses in the GUI or CLI, check incoming payments, reconcile invoices, and restore receipts with the right records.

Separate paper envelopes follow orange paths into one charcoal wallet

A Monero subaddress gives you another way to receive XMR in a wallet you already use. You can put one address on a public donation page and give another to a client. If the client searches the web for the address on their invoice, it won't match the one on your donation page. Both addresses keep working, and you still have one wallet seed to back up.

You can also issue a subaddress for each invoice. If two customers each owe 0.20 XMR, the receiving address tells you which bill was paid. There's no need to ask either customer for a transaction ID just to match the payment.

The subaddresses glossary entry gives a shorter definition. This guide shows how to create and track them.

Create a subaddress in Monero GUI

  1. Open the official Monero GUI and let the wallet synchronize.
  2. Open Account and click the account that should receive the payment. The account you click becomes the current account. Its label and balance let you confirm that you did not select a personal or unrelated account.
  3. Open Receive and click Create new address.
  4. Select the new row, use Set label, and enter a useful local label such as Repair 1042.
  5. Copy the selected address or show its QR code.

On mainnet, the new row should show an address beginning with 8 and a QR code for that address. Its local label should read Repair 1042. The primary address in account 0 begins with 4. Compare the complete address when checking a destination because the prefix only identifies the address type. The GUI guide documents the Receive page and its address controls, and the official GUI reference links to that living guide.

Creating a subaddress is a local wallet operation. It does not send a transaction or pay a fee. Existing subaddresses continue to work after you create another one. Monero's subaddress documentation describes the account and address indexes used to derive them.

Create a subaddress in monero-wallet-cli

Open a terminal, start monero-wallet-cli, and unlock the wallet. Type the following commands at the interactive wallet prompt, which normally begins with [wallet. Do not type them at your operating system's shell prompt.

Plain text
account
account switch 0
balance
address new Repair 1042
address all

account lists the wallet's accounts and their indexes. account switch 0 selects account 0. The next command should print Currently selected account: [0] with its label, balance, and unlocked balance. If the invoice belongs in another account, replace 0 with that account's index.

address new Repair 1042 creates one subaddress in the selected account and assigns the local label Repair 1042. The command accepts spaces in a label. address all should then show the new address under the selected account. The row includes its numeric address index and the label. Account and address indexes start at zero, with (0, 0) reserved for the wallet's primary address. The official CLI guide and CLI command reference document these commands.

The label is wallet metadata rather than part of the address or blockchain, so changing it does not redirect a payment. A seed restore can reproduce the address from its indexes, but it does not restore the label.

Check incoming payments

Use these commands at the same wallet prompt:

Plain text
refresh
show_transfers pool
show_transfers in
balance detail

refresh asks the wallet to scan new blocks. show_transfers pool shows incoming transfers the wallet sees in the transaction pool. The wallet has detected them, but a block has not confirmed them. show_transfers in shows confirmed incoming transfers for the selected account. Use index=17 to filter by address index:

Plain text
show_transfers in index=17

balance detail lists balances by address within the current account. If you already know a transaction ID and want the wallet's details for it, use:

Plain text
show_transfer <txid>

Replace <txid> with the transaction ID. The CLI reference explains the separate commands for pool transfers, confirmed receipts, and address balances. A detected transfer and a transfer that meets your confirmation policy are separate states.

Labeled payment slips flow into one wallet while two people compare separate slips

Address privacy

The subaddress is the address you give the payer. The sender's wallet uses it to derive a one-time output public key for the payment. That one-time key is what appears in the transaction, while your wallet uses its private information to recognize the output. The Moneropedia explanation of stealth addresses describes this sender-created, one-time destination.

Someone who knows a published subaddress can recognize the same address string on another website, invoice, or leaked record. They cannot paste it into a block explorer to retrieve the wallet's receipts or balance. Different subaddresses remove that exact repeated string, but they do not hide customer information stored beside a payment, such as a name, email address, or exchange account.

Subaddresses also have an active-linking limitation known as Janus. A party that knows two candidate subaddresses can construct a special payment and use the recipient's off-chain confirmation to test whether both addresses belong to one seed. Passive address comparison alone cannot perform this test. Use independently seeded wallets when two identities require stronger separation. The Monero Janus advisory lists the requirements and scope.

Match payments to invoices

A repair shop creates one subaddress for each invoice. Before it displays a QR code, the register calls Wallet RPC create_address with the intended account and saves the returned address index and address beside the invoice. If checkout reloads, the register retrieves that saved mapping instead of creating another address. The create_address reference documents the returned address and index.

The shop's records begin like this:

Invoice and address Amount due First receipt
Repair 1042, index 17 0.20 XMR 0.18 XMR, 0.02 XMR short
Repair 1043, index 18 0.20 XMR 0.20 XMR, amount received

The 0.18 XMR output credits repair 1042, but the invoice remains short. The 0.20 XMR output credits repair 1043. When a later 0.02 XMR output reaches address index 17, the register adds it to repair 1042 and the received total becomes 0.20 XMR.

Polling must not add the same output again on every refresh. For confirmed receipts, Wallet RPC incoming_transfers returns the receiving subaddress index and the public key of each owned output. Store or de-duplicate on that output pubkey, or another stable output identifier. Do not use the transaction hash alone because one transaction can contain more than one incoming output. The incoming_transfers fields make this distinction explicit.

For early detection, get_transfers can return pool entries. Keep that pending observation separate from the confirmed output so the transition from pool to block does not count as a second payment. It also reports how many confirmations a mined transfer has. Mark an invoice as payment detected when the wallet first sees it, then mark it paid only when the sum of distinct outputs reaches the amount due and each counted output meets the shop's confirmation policy. See the get_transfers reference.

Restore from the right height

A restore height tells the wallet where to begin scanning the blockchain. Set it at or before the wallet's earliest possible incoming payment. A height after the first payment can make the restored wallet miss receipts and show the wrong balance. A lower height is safe but takes longer to scan. The official restoration guide explains the tradeoff.

Extend subaddress lookahead

Subaddress lookahead tells the wallet how many account and address indexes beyond the last confirmed payment it should check. A shop may issue many unpaid quotes before a far-ahead address receives XMR. Keep the highest issued index for each account so you know how far to extend this range after a restore. If the wallet misses a far-ahead payment, increase its lookahead and rescan from before the payment. The Wallet RPC set_subaddress_lookahead documentation calls this range the wallet's gap.

Restore height controls which part of the blockchain the wallet scans. Lookahead controls which derived addresses it checks while scanning.

Restore the invoice records

The local invoice database gives a recovered address its business meaning. Back up the mapping between invoice ID, account index, address index, address, amount due, credited output identifiers, and payment status. Protect that database because it connects customers with wallet activity.

After a seed restore, the wallet may find the 0.20 XMR received at address index 18. To identify it as payment for repair 1043, the shop needs its invoice records.

Support Monero Love

Help keep the public nodes and packages running. Send any amount of XMR.

Scan with a Monero wallet to donate to Monero Love.89hGTKxRVA3AUeKAbCRBt5TMSzq3MQZooNNsezCpNFjp2oeJPRx8AJeGKA8ziHZNqab78f4Vr1ntxhPDxX5298nnGZjHkhm