docs.waku.org/assets/js/a58aad3a.d51c82d0.js
2025-10-03 05:55:52 +00:00

1 line
6.3 KiB
JavaScript

"use strict";(self.webpackChunkwaku_guide=self.webpackChunkwaku_guide||[]).push([[3635],{28453:(e,n,d)=>{d.d(n,{R:()=>i,x:()=>t});var s=d(96540);const r={},o=s.createContext(r);function i(e){const n=s.useContext(o);return s.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function t(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),s.createElement(o.Provider,{value:n},e.children)}},76113:(e,n,d)=>{d.r(n),d.d(n,{assets:()=>a,contentTitle:()=>t,default:()=>u,frontMatter:()=>i,metadata:()=>s,toc:()=>l});const s=JSON.parse('{"id":"run-node/find-node-address","title":"Find Your Node Address","description":"When starting the node, nwaku will display all the public listening and discovery addresses at the INFO log level.","source":"@site/docs/run-node/find-node-address.md","sourceDirName":"run-node","slug":"/run-node/find-node-address","permalink":"/run-node/find-node-address","draft":false,"unlisted":false,"editUrl":"https://github.com/waku-org/docs.waku.org/tree/develop/docs/run-node/find-node-address.md","tags":[],"version":"current","lastUpdatedAt":null,"frontMatter":{"title":"Find Your Node Address","hide_table_of_contents":true,"displayed_sidebar":"runNode"},"sidebar":"runNode","previous":{"title":"Configure Peer Discovery","permalink":"/run-node/configure-discovery"},"next":{"title":"Node Configuration Methods","permalink":"/run-node/config-methods"}}');var r=d(74848),o=d(28453);const i={title:"Find Your Node Address",hide_table_of_contents:!0,displayed_sidebar:"runNode"},t=void 0,a={},l=[{value:"Listening addresses",id:"listening-addresses",level:2},{value:"Discoverable ENR addresses",id:"discoverable-enr-addresses",level:2},{value:"ENR for DNS discovery",id:"enr-for-dns-discovery",level:3},{value:"ENR for Discv5",id:"enr-for-discv5",level:3}];function c(e){const n={a:"a",admonition:"admonition",code:"code",h2:"h2",h3:"h3",p:"p",pre:"pre",...(0,o.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.admonition,{type:"info",children:(0,r.jsxs)(n.p,{children:["When starting the node, ",(0,r.jsx)(n.code,{children:"nwaku"})," will display all the public listening and discovery addresses at the ",(0,r.jsx)(n.code,{children:"INFO"})," log level."]})}),"\n",(0,r.jsxs)(n.p,{children:["You can find the addresses of a running node through its logs or by calling the ",(0,r.jsx)(n.a,{href:"https://waku-org.github.io/waku-rest-api/#get-/debug/v1/info",children:"Get node info"})," endpoint of the ",(0,r.jsx)(n.a,{href:"https://waku-org.github.io/waku-rest-api/",children:"REST API"}),"."]}),"\n",(0,r.jsx)(n.h2,{id:"listening-addresses",children:"Listening addresses"}),"\n",(0,r.jsxs)(n.p,{children:["Look for the log entry that begins with ",(0,r.jsx)(n.code,{children:"Listening on"}),", for example:"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-txt",metastring:'title="Nwaku Log Output"',children:'INF 2023-06-15 16:09:54.448+01:00 Listening on topics="waku node" tid=1623445 file=waku_node.nim:922 full=[/ip4/0.0.0.0/tcp/60000/p2p/16Uiu2HAmQCsH9V81xoqTwGuT3qwkZWbwY1TtTQwpr3DjHU2TSwMn][/ip4/0.0.0.0/tcp/8000/ws/p2p/16Uiu2HAmQCsH9V81xoqTwGuT3qwkZWbwY1TtTQwpr3DjHU2TSwMn]\n'})}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-shell",children:"# Listening TCP transport address\n/ip4/0.0.0.0/tcp/60000/p2p/16Uiu2HAmQCsH9V81xoqTwGuT3qwkZWbwY1TtTQwpr3DjHU2TSwMn\n\n# Listening WebSocket address\n/ip4/0.0.0.0/tcp/8000/ws/p2p/16Uiu2HAmQCsH9V81xoqTwGuT3qwkZWbwY1TtTQwpr3DjHU2TSwMn\n"})}),"\n",(0,r.jsx)(n.h2,{id:"discoverable-enr-addresses",children:"Discoverable ENR addresses"}),"\n",(0,r.jsxs)(n.p,{children:["A ",(0,r.jsx)(n.code,{children:"nwaku"})," node can encode its addressing information in an ",(0,r.jsx)(n.a,{href:"https://eips.ethereum.org/EIPS/eip-778",children:"Ethereum Node Record (ENR)"}),"."]}),"\n",(0,r.jsx)(n.h3,{id:"enr-for-dns-discovery",children:"ENR for DNS discovery"}),"\n",(0,r.jsxs)(n.p,{children:["Look for the log entry that begins with ",(0,r.jsx)(n.code,{children:"DNS: discoverable ENR"}),", for example:"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-txt",metastring:'title="Nwaku Log Output"',children:'INF 2023-06-15 16:09:54.448+01:00 DNS: discoverable ENR topics="waku node" tid=1623445 file=waku_node.nim:923 enr=enr:-Iu4QBKYj8Ovxwz4fIalxZ_1a8dOCU2WC-1LQrcBCCb4Np93f9-UuSZXn3vagJL1S3k3hwRYfOp3JSbW7_VqwtqMIeMBgmlkgnY0gmlwhAAAAACJc2VjcDI1NmsxoQOrmyV59dAzY4ZKrvrj32VOoZbLby8dCKFnXnqhIdQ0NYN0Y3CC6mCFd2FrdTIB\n'})}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-shell",children:"# ENR the node addresses are encoded in\nenr:-Iu4QBKYj8Ovxwz4fIalxZ_1a8dOCU2WC-1LQrcBCCb4Np93f9-UuSZXn3vagJL1S3k3hwRYfOp3JSbW7_VqwtqMIeMBgmlkgnY0gmlwhAAAAACJc2VjcDI1NmsxoQOrmyV59dAzY4ZKrvrj32VOoZbLby8dCKFnXnqhIdQ0NYN0Y3CC6mCFd2FrdTIB\n"})}),"\n",(0,r.jsx)(n.h3,{id:"enr-for-discv5",children:"ENR for Discv5"}),"\n",(0,r.jsxs)(n.p,{children:["Look for the log entry that begins with ",(0,r.jsx)(n.code,{children:"Discv5: discoverable ENR"}),", for example:"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-txt",metastring:'title="Nwaku Log Output"',children:'INF 2023-06-15 16:09:54.448+01:00 Discv5: discoverable ENR topics="waku node" tid=1623445 file=waku_node.nim:924 enr=enr:-IO4QDxToTg86pPCK2KvMeVCXC2ADVZWrxXSvNZeaoa0JhShbM5qed69RQz1s1mWEEqJ3aoklo_7EU9iIBcPMVeKlCQBgmlkgnY0iXNlY3AyNTZrMaEDdBHK1Gx6y_zv5DVw5Qb3DtSOMmVHTZO1WSORrF2loL2DdWRwgiMohXdha3UyAw\n'})}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-shell",children:"# ENR the node addresses are encoded in\nenr:-IO4QDxToTg86pPCK2KvMeVCXC2ADVZWrxXSvNZeaoa0JhShbM5qed69RQz1s1mWEEqJ3aoklo_7EU9iIBcPMVeKlCQBgmlkgnY0iXNlY3AyNTZrMaEDdBHK1Gx6y_zv5DVw5Qb3DtSOMmVHTZO1WSORrF2loL2DdWRwgiMohXdha3UyAw\n"})}),"\n",(0,r.jsx)(n.admonition,{title:"Congratulations!",type:"tip",children:(0,r.jsxs)(n.p,{children:["You have successfully found the listening and discoverable addresses for your ",(0,r.jsx)(n.code,{children:"nwaku"})," node. Have a look at the ",(0,r.jsx)(n.a,{href:"/run-node/configure-discovery",children:"Configure Peer Discovery"})," guide to learn how to discover and connect with peers in the network."]})})]})}function u(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(c,{...e})}):c(e)}}}]);