AlveyChain Documents
  • Alveychain Docs
  • Get-Started
    • Alveychain
    • Installation
    • Local Setup
    • Cloud Setup
    • Full Node
    • CLI Commands
    • JSON RPC Commands
    • Performance Reports
  • Configuration
    • Manage private keys
    • Set up Hashicorp Vault
    • Enable Prometheus metrics
  • Working-With-Node
    • Query JSON RPC endpoints
    • Query operator information
    • Backup/restore node instance
  • Consensus
    • Proof of Authority (PoA)
    • Proof of Stake
    • Set up and use Proof of Stake (PoS)
    • Migration from PoA to PoS
  • Additional Features
    • Alveycoin bridge
    • Network stress testing
    • Blockscout
  • Architecture
    • Architecture Overview
    • modules
      • Blockchain
      • Consensus
      • JSON RPC
      • Minimal
      • Networking
      • Other modules
      • Protocol
      • Sealer
      • State
      • Storage
      • TxPool
      • Types
  • Concepts
    • State in Ethereum
  • Community
    • Propose a new feature
    • Report an issue
  • Docs
    • Server Config File
    • how-tos
      • How to set up and use Proof of Stake (PoS)
Powered by GitBook
On this page
  • Prerequisites
  • Peer information
  • IBFT info
  • Transaction pool
  1. Working-With-Node

Query operator information

PreviousQuery JSON RPC endpointsNextBackup/restore node instance

Last updated 2 years ago

Prerequisites

This guide assumes you have followed the or .

A functioning node is required in order to query any kind of operator information.

With the Alveychain, node operators are in control and informed about what the node they're operating is doing. At any time, they can use the node information layer, built on top of gRPC, and get meaningful information - no log sifting required.

:::note

If your node isn't running on 127.0.0.1:8545 you should add a flag --grpc-address <address:port> to the commands listed in this document.

:::

Peer information

Peers list

To get a complete list of connected peers (including the running node itself), run the following command:

alveychain peers list

This will return a list of libp2p addresses that are currently peers of the running client.

Peer status

For the status of a specific peer, run:

alveychain peers status --peer-id <address>

With the address parameter being the libp2p address of the peer.

IBFT info

Lots of times, an operator might want to know about the state of the operating node in IBFT consensus.

Luckily, the Alveychain provides an easy way to find this information.

Snapshots

Running the following command returns the most recent snapshot.

alveychain ibft snapshot

To query the snapshot at a specific height (block number), the operator can run:

alveychain ibft snapshot --num <block-number>

Candidates

To get the latest info on candidates, the operator can run:

alveychain ibft candidates

This command queries the current set of proposed candidates, as well as candidates that have not been included yet

Status

The following command returns the current validator key of the running IBFT client:

alveychain ibft status

Transaction pool

To find the current number of transactions in the transaction pool, the operator can run:

alveychain txpool status
Local Setup
guide on how to set up an IBFT cluster on the cloud