info.uptime

Returns the uptime info of the node by chain id.

Description

Returns the network's observed uptime of this node. This is the only reliable source of data for your node's uptime. Other sources may be using data gathered with incomplete (limited) information.

Signature:

info.uptime({  
    subnetID: string // optional  
}) ->  
{  
    rewardingStakePercentage: float64,  
    weightedAveragePercentage: float64  
}
  • subnetID is the Subnet to get the uptime of. If not provided, returns the uptime of the node on the primary network.
  • rewardingStakePercentage is the percent of stake which thinks this node is above the uptime requirement.
  • weightedAveragePercentage is the stake-weighted average of all observed uptimes for this node.

Language
Authorization
Header
Click Try It! to start a request and see the response here!