Documentation

enode URL Format

How VirBiCoin peers are addressed on the devp2p network.

Nodes on the VirBiCoin peer-to-peer (devp2p) network identify each other using enode URLs. An enode URL packages a node's public key together with the IP address and ports needed to reach it, so it can be shared as a single string — for example as a bootnode or as a --bootnodes entry.

Format

enode://<node-id>@<ip>:<port>

A concrete VirBiCoin mainnet bootnode looks like this:

enode://e8853097e51e155d6bac72b9ebff92ccdf5aa8ee9a845b92f6af969120b9ed017d6b79f231cf05f68e68237a824946f502b84914e0737e81c7a252a0174764f8@140.238.40.136:28329

Components

PartMeaning
node-idThe 512-bit (128 hex character) secp256k1 public key of the node, with the leading0x04 prefix removed.
ipThe externally reachable IPv4/IPv6 address of the node.
portThe TCP listening port. On VirBiCoin the default devp2p port is 28329.

An optional ?discport=<udp-port> query parameter can be appended when the UDP discovery port differs from the TCP port.

Obtaining your own enode URL

When a bootnode starts it prints its enode URL. You can also query a running gvbc node from the console:

# In the gvbc JavaScript console
admin.nodeInfo.enode

Replace the displayed address (often [::]) with your externally reachable IP so that other nodes can connect.

See also