Add peer observed addresses. These will then appear in the output of getObservedAddrs but not getAddresses() until their dialability has been confirmed via a call to confirmObservedAddr.
Add a publicly routable address/port/protocol tuple that this node is reachable on. Where this node listens on a link-local (e.g. LAN) address with the same protocol for any transport, an additional listen address will be added with the IP and port replaced with this IP and port.
It's possible to add a IPv6 address here and have it added to the address list, this is for the case when a router has an external IPv6 address with port forwarding configured, but it does IPv6 -> IPv4 NAT.
Optional
externalPort: numberOptional
protocol: "tcp" | "udp"Signal that we have confidence an observed multiaddr is publicly dialable - this will make it appear in the output of getAddresses()
Optional
options: ConfirmAddressOptionsReturn all known addresses with metadata
Signal that we do not have confidence an observed multiaddr is publicly dialable - this will remove it from the output of getObservedAddrs()
Remove a publicly routable address that this node is no longer reachable on
Optional
externalPort: numberOptional
protocol: "tcp" | "udp"
Adds a mapping between one or more IP addresses and a domain name - when
getAddresses
is invoked, where the IP addresses are present in a multiaddr, an additional multiaddr will be added withip4
andip6
tuples replaced withdns4
and `dns6 ones respectively.