MAAL CHAIN DOCUMENTATION
  • MAAL Network Details
  • How to connect to MAAL Chain
    • ETH APIs
    • NET
    • Web3
    • Tx Pool
    • Debug
  • MAAL Contract Library
  • MaalChain Architecture
  • What is Proof of Stake?
  • Who is a validator?
  • Validator Nodes
  • Minimum system requirements
  • MAAL Validator DAO
Powered by GitBook
On this page
  • net_version​
  • net_listening​
  • net_peerCount​
  1. How to connect to MAAL Chain

NET

Get MAALCHAIN network details

PreviousETH APIsNextWeb3

Last updated 1 year ago

net_version

Returns the current network id.

Parameters

None

Returns

  • String - The current network id.

Example

curl  https://node1-mainnet.maalscan.io -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"net_version","params":[],"id":83}'

net_listening

Returns true if a client is actively listening for network connections.

Parameters

None

Returns

  • Boolean - true when listening, otherwise false.

curl  https://node1-mainnet.maalscan.io -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"net_listening","params":[],"id":83}'

Returns number of peers currently connected to the client.

None

  • QUANTITY - integer of the number of connected peers.

curl  https://node1-mainnet.maalscan.io -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"net_peerCount","params":[],"id":1}'

Example

net_peerCount

Parameters

Returns

Example

​
​
​
​
​
​
​
​
​
​
​
​