Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 695 Bytes

lesson_2.md

File metadata and controls

28 lines (21 loc) · 695 Bytes

Goal:

  • Understand how to identify node ports
  • Understand how to configure node ports

Lesson 2: Configuration of node ports

Guidelines

A node has many ports to serve different purposes, but the three one worth focusing on are:

  1. RPC (Remote Procedure Call) listen port (default 26657)

  2. REST API listen port (default 1317)

  3. P2P listen port (default 26656)

  4. RPC

  • change rpc address in config.toml
  • babyd start --rpc.laddr tcp://0.0.0.0:1800
  1. REST API:
  • enable REST API in app.toml
  • enable swagger in app.toml
  • change REST API in app.toml
  1. P2P:
  • change p2p address in config.toml
  • babyd start --p2p.laddr tcp://0.0.0.0:1900

Help videos

https://youtu.be/5rBQ4eX6YxQ