Kointax.ioKointax.io

Lightning Network nodes as an economic activity: taxation in Spain

Operating a Lightning Network node generates fees for routing Bitcoin payments. Is this an economic activity? How are routing fees taxed and what expenses are deductible?

Equipo declaracrypto·April 25, 2026·6 min read

Operating a Lightning Network node: economic activity or investment?

The Lightning Network (LN) is Bitcoin's layer 2 designed for fast and cheap micro-payments. Anyone can operate a node on the network and earn commissions for routing third-party payments between channels. For the AEAT, this raises the question: is it an economic activity or simply a passive investment?

How does a Lightning Network node earn?

An LN node:

  1. Open payment channels with other nodes, locking BTC as liquidity.
  2. When someone needs to route a payment through your node → you pay a small commission (the "routing fee").
  3. Those fees accumulate in your channels in satoshis.

Source of income: Routing fees are the percentage that you define (base fee + fee rate) that you charge for each payment that you route through your channels.

Business size: how much do you earn?

Medium-sized Lightning Network nodes typically generate:

  • Small node (1-5 channels, 500,000 sats liquidity): 500-5,000 sats/year ≈ very little.
  • Professional medium node (50-100 channels, 10-20 BTC liquidity): can generate 0.05-0.2 BTC/year.
  • Large routing node (hub): potentially significant.

For most users, the income is marginal. For large routing nodes, this may be a relevant activity.

Tax classification: economic activity or movable capital?

Argument in favor of economic activity

  • There is active management of the node (open/close channels, manage liquidity, adjust fees).
  • Means (server, LND/CLN software, network connection) are used to earn commissions.
  • There is a systematic profit motive.
  • It is analogous to operating as a market maker on an exchange.

Argument in favor of movable capital

  • Routing fees are the result of the capital invested (the BTC in the channels).
  • The node can work almost automatically with tools like LNDg or ThunderHub.

Without specific DGT criteria, the safest stance for active nodes with significant revenue is to treat it as economic activity. For small nodes with negligible income, movable capital can be argued.

Taxation of routing fees

If it is economic activity (professional node):

  • Accumulated routing fees measurable in satoshis → returns from economic activities.
  • Tax base: value in EUR at the BTC/EUR exchange rate at the time of receipt of the fees.
  • Deductible expenses: server (VPS), proportional electricity, internet, software, hardware.

If it is movable capital (small personal node):

  • Routing fees → capital gains.
  • Value in EUR at the time of accumulation or at the time of channel settlement.

The moment of accrual: when are the fees taxed?

Routing fees accumulate in the channel without being explicitly "received" in your wallet. Only when you close an LN channel:

  • The channel is settled on-chain.
  • You receive the total balance of the channel in your on-chain wallet (BTC).
  • The difference between the BTC deposited when opening the channel and the BTC received when closing it includes the accumulated routing fees.

Taxation: Upon closure of the channel. The difference = accumulated routing fees (income) + or − variation in the value of BTC (GPO times the price variation).

The double layer:

  1. Routing fees (income from routing): economic activity or movable capital.
  2. The appreciation of BTC in the channel: capital gain for BTC that rose in value.

BTC locked in channels: is it a broadcast?

When you open an LN channel:

  • You "lock" BTC in a smart contract (HTLC) of the LN.
  • Taxation: It is not transmission → the BTC remains yours. There is no taxable event when opening or closing channels.
  • The transmission occurs if you use BTC to pay for something (you pay in LN).

Tracking tools for LN nodes

  • LNDg: monitoring and management of an LNG node with routing fee history.
  • ThunderHub: control panel with fee statistics.
  • Boss: directory and analysis of public nodes.
  • BTCPay Server: for nodes integrated with online stores.

Exports routing fee history for annual tax calculation.

Registration in autonomous for professional routing nodes

If you decide to treat the node as an economic activity:

  • Form 036: registration in the IAE (possibly under the heading "financial intermediaries" or "digital services").
  • Registration in self-employed workers if it exceeds the annual SMI.
  • Submit installment payments of personal income tax (form 130) quarterly.

Updated: April 2026 | Fiscal year: 2025

Ready to calculate your crypto taxes?

declaracrypto.es — FIFO, LIFO, HIFO or WAC method. 80+ compatible exchanges. Excel + PDF report ready for your tax return.

Start free — no card needed