Search…
Finding PeerId
The signer.sh script that is bundled with Aleph Node Runner will discover your Peer ID for you, as described in the next section. However, in some cases you might want to know your Peer ID and below we show you an easy way to find it.
A PeerId is an identifier other nodes can use when communicating with your node. To that end, every node in the network has a unique PeerId. To view it, you can simply check the beginning of the logs:
docker logs <your_nodes_name>
The output should look like the following:
2022-07-04 12:32:09 〽️ Prometheus exporter started at 0.0.0.0:9615
2022-07-04 12:32:09 Running session 4013.
2022-07-04 12:32:10 πŸ” Discovered new external address for our node: /ip4/195.150.192.250/tcp/30333/p2p/12D3KooWFGUSW3DMq92JSoGKkBM5WTNJ4bFiJ88PDCX6ttnXadQU
2022-07-04 12:32:11 βœ… no migration for System
2022-07-04 12:32:11 βœ… no migration for RandomnessCollectiveFlip
2022-07-04 12:32:11 βœ… no migration for Scheduler
2022-07-04 12:32:11 βœ… no migration for Aura
2022-07-04 12:32:11 βœ… no migration for Timestamp
2022-07-04 12:32:11 βœ… no migration for Balances
2022-07-04 12:32:11 βœ… no migration for TransactionPayment
2022-07-04 12:32:11 βœ… no migration for Authorship
2022-07-04 12:32:11 βœ… no migration for Staking
2022-07-04 12:32:11 βœ… no migration for History
2022-07-04 12:32:11 βœ… no migration for Session
2022-07-04 12:32:11 ⚠️ Aleph declares internal migrations (which *might* execute). On-chain `StorageVersion(2)` vs current storage version `StorageVersion(2)`
2022-07-04 12:32:11 ⚠️ Elections declares internal migrations (which *might* execute). On-chain `StorageVersion(0)` vs current storage version `StorageVersion(2)`
2022-07-04 12:32:11 Running migration from STORAGE_VERSION 0 to 1 for pallet elections
2022-07-04 12:32:11 Running migration from STORAGE_VERSION 1 to 2 for pallet elections
2022-07-04 12:32:11 βœ… no migration for Treasury
2022-07-04 12:32:11 βœ… no migration for Vesting
2022-07-04 12:32:11 βœ… no migration for Utility
2022-07-04 12:32:11 βœ… no migration for Multisig
2022-07-04 12:32:11 βœ… no migration for Sudo
2022-07-04 12:32:11 βœ… no migration for Contracts
2022-07-04 12:32:11 βœ… no migration for NominationPools
2022-07-04 12:32:11 βœ… no migration for Identity
2022-07-04 12:32:14 Running session 4014.
2022-07-04 12:32:14 βš™οΈ Syncing, target=#4662784 (16 peers), best: #3618503 (0xe8a9…47c8), finalized #3612599 (0xf40d…de62), ⬇ 927.5kiB/s ⬆ 16.5kiB/s
Your PeerId will be in the line with the external address:
Discovered new external address for our node: /ip4/195.150.192.250/tcp/30333/p2p/12D3KooWFGUSW3DMq92JSoGKkBM5WTNJ4bFiJ88PDCX6ttnXadQU
And the peer id is the last part of this address, so in this case: 12D3KooWFGUSW3DMq92JSoGKkBM5WTNJ4bFiJ88PDCX6ttnXadQU
Copy link