---
title: "Node Announcement (Lightning Gossip) — definition | Nuri Glossary"
description: "A gossip message where a Lightning node publishes its alias, features and reachable addresses."
lang: "en"
type: "glossary-term"
canonical: "https://nuri.com/glossary/node-announcement-message"
---

# Node Announcement (Lightning Gossip)

A gossip message where a Lightning node publishes its alias, features and reachable addresses.

## Basically

A node_announcement tells other Lightning users who your node is and how to reach it. It also shares your node's name, colour and supported features.

## Key Takeaways

- A node_announcement is a gossip protocol message (BOLT 7, type 257) that broadcasts a Lightning node's identity, network addresses, supported features, alias, and colour to the rest of the network.
- Nodes can only send a valid node_announcement after at least one of their public channels has been confirmed via a channel_announcement. This prevents spam by tying node identity to on-chain proof of stake.
- Wallets, routing algorithms, and block explorers rely on node_announcement data to build and display the network graph, find reachable peers, and route payments through nodes with the right feature set.

## What Is a Node Announcement?

A node announcement (formally node_announcement) is one of the three core gossip messages defined in BOLT 7, the Lightning Network specification for routing gossip. While channel_announcement proves a channel exists on-chain and channel_update advertises routing fees and policies, node_announcement tells the network who a node is and how to reach it.
Every Lightning node that operates at least one public channel can broadcast a node_announcement containing its public key, IP addresses or Tor onion addresses, a human-readable alias of up to 32 bytes, an RGB colour for visual identification, and feature flags describing which protocol extensions it supports. Other nodes relay valid announcements to their own peers, flooding the message across the network so every participant can maintain an up-to-date view of the topology.

## How It Works

The node_announcement message is type 257 in the Lightning wire protocol. A node constructs and signs a node_announcement to advertise or update its information, then sends it to all connected peers. Those peers validate the message and forward it if it is newer than any previous announcement from the same node.

## Message Fields

The message contains the following fields, serialised in order:
The signature field covers the double-SHA256 hash of everything after itself: features, timestamp, node_id, color, alias, and addresses. It proves that the holder of the corresponding private key created the announcement.

## Address Descriptors

The addresses field contains one or more address descriptors, each prefixed by a single-byte type identifier:
Type 3 was formerly used for Tor v2 onion services but is now deprecated and ignored by conforming implementations. Addresses must be listed in ascending order by type, and receivers ignore ports of zero.

## Validation Rules

A receiving node applies several checks before accepting and relaying a node_announcement:

## Timestamp and Updates

The timestamp field serves as a version number. A node broadcasts a new node_announcement with a higher timestamp when it changes its IP address, adds Tor support, enables a new protocol feature, or wants to refresh its presence. Receivers compare timestamps and keep only the latest version. The specification recommends using a UNIX timestamp for this field, though any monotonically increasing value is valid.
Nodes typically rebroadcast their announcement periodically, often every few days, even if nothing has changed, to ensure their information reaches newly joined peers. Stale announcements from nodes whose channels have all closed are eventually pruned from the network graph.

## Node Alias and Color

Two fields give nodes a human-friendly identity. The rgb_color field is three bytes representing red, green, and blue values, used by explorers and visualisation tools to render nodes on network graphs. The alias field is a fixed 32-byte UTF-8 string, zero-padded at the end, that serves as the node's human-readable name.
Aliases are self-assigned and not unique, so any software displaying them must treat the data as untrusted. The BOLT 7 specification explicitly warns that aliases should be sanitised before rendering in HTML or JavaScript contexts and escaped before database storage, to prevent cross-site scripting and injection attacks.

## Feature Flags

The features field advertises which protocol extensions a node supports, encoded as a variable-length bit vector following the conventions defined in BOLT 9. Even-numbered bits indicate compulsory features that the sender requires peers to understand, while odd-numbered bits indicate optional features.
Examples of features commonly advertised in node_announcements include support for anchor outputs, onion messaging, blinded paths, simple taproot channels, and multi-path payments. Routing nodes use these flags to determine whether a peer supports the protocol features required for a given payment path.

## Payment Routing

The most critical use of node_announcement data is payment routing. A wallet or routing node consults the network graph constructed from gossip messages when building a path from sender to receiver. The node_announcement tells the pathfinding algorithm which nodes are reachable, what addresses they listen on, and whether their feature set is compatible with the payment being sent.

## Network Explorers

Block explorers and network visualisation tools such as Amboss, mempool.space, and 1ML aggregate node_announcement data to display network statistics: node count, geographic distribution inferred from IP addresses, capacity, alias, and colour. The alias and rgb_color fields make these visualisations human-readable.

## Peer Connection

A wallet or node uses the address descriptors from node_announcements to discover how to reach potential peers when opening a new channel. This peer discovery removes the need for out-of-band information, like a manual connection string, to find and connect to every peer.

## Mobile and Lightweight Clients

Mobile Lightning wallets often cannot process the full gossip stream due to bandwidth and battery constraints. Protocols like rapid gossip sync compress node_announcement and channel_update data into compact snapshots, allowing mobile clients to bootstrap a routing graph without downloading every individual gossip message. The timestamp field makes this efficient because clients can request only announcements newer than their last sync.

## Relationship to Other Gossip Messages

BOLT 7 defines three gossip messages that work together to describe the Lightning Network topology:
The channel_announcement is the anchor: it ties two node_ids to a specific UTXO on the Bitcoin blockchain. Receivers process node_announcements from those node_ids only after accepting a valid channel_announcement. This dependency chain prevents attackers from flooding the network with fake node identities.

## Privacy Tradeoffs

Broadcasting a node_announcement reveals the node's IP addresses and Tor onion addresses to the entire network. Operators who prioritise privacy may use Tor-only addresses or operate private channels that do not generate gossip messages at all. The Noise protocol secures the connection between peers, but the node_announcement itself is public by design.

## Gossip Bandwidth

The volume of gossip messages increases as the Lightning Network grows. Each node_announcement is relatively small, but the aggregate bandwidth required to receive, validate, and relay thousands of announcements can strain resource-constrained devices. Timestamp-based deduplication helps, but large networks still generate significant gossip traffic. Proposals for gossip v2 aim to reduce this overhead by using inventory-based message exchange rather than unconditional flooding.

## Alias Spoofing

Aliases are self-assigned and not enforced to be unique, so any node can set its alias to mimic well-known nodes. You and your software should always verify a node by its node_id (public key), not its alias. Displaying both the alias and a truncated node_id is standard practice in wallets and explorers to mitigate impersonation.

## Stale Announcements

A node that goes offline without closing its channels leaves its last node_announcement in the network graph. Routing attempts through the node will fail, wasting time and fee budget in the pathfinding process. Implementations typically prune announcements from nodes that have not refreshed within a configurable window, often two weeks.

## Why It Matters

The node_announcement message is the foundation of the Lightning Network's decentralised directory service. Without it, every node connection and payment route would require out-of-band coordination. By combining node_announcements with channel_announcements and channel_updates, the gossip protocol gives every participant a shared, self-updating map of the network: who is online, where they can be reached, and what capabilities they support.
Layer 2 systems like the Lightning Network and beyond need efficient peer discovery and metadata distribution to scale payments. As protocols evolve with features like blinded paths and onion messaging, the feature flags in node_announcements ensure that the network can coordinate upgrades without breaking backward compatibility.
The glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.
Part of the [Nuri glossary](https://nuri.com/glossary), which defines 1876 Bitcoin, Lightning, wallet, stablecoin and payment terms.
