ain.net module
- class ain.net.Network(provider: Provider)
Bases:
object
Class for the AIN Blockchain network status checker.
- async checkProtocolVersion() bool
Checks the protocol version.
- async getChainId() int
Fetches the ID of the chain the blokchain node is validating.
- async getConsensusStatus() Any
Fetches the consensus status of the network.
- async getEventHandlerNetworkInfo() Any
Returns the event handler network information.
- async getNetworkId() int
Fetches the ID of the network the blokchain node is connected to.
- async getPeerCandidateInfo() Any
Fetches the peer candidate information of the blockchain node.
- async getPeerCount() int
Fetches the number of the peers the blockchain node is connected to.
- async getProtocolVersion() str
Returns the protocol version of the node.
- async getRawConsensusStatus() Any
Fetches the consensus status raw data of the network.
- async isListening() bool
Checks whether the blockchain node is listening for network connections.
- async isSyncing() bool
Checks whether the blockchain node is syncing with the network or not.
- protoVer: str
The protocol version of the blockchain.