Download OpenAPI specification:Download
The Chia node and services come with a JSON RPC API server that allows you to access information and control the services. These are accessible via HTTPS, WebSockets, or via client SDKs. The ports can be configured in ~/.chia/mainnet/config/config.yaml
. The RPC ports should not be exposed to the internet. TLS certificates are used to secure the communication using mutualTLS.
The crawler uses port 8561 by default.
Retrieves aggregate information about peers.
Empty request body
{ }
{- "peer_counts": {
- "total_last_5_days": 0,
- "reliable_nodes": 0,
- "ipv4_last_5_days": 0,
- "ipv6_last_5_days": 0,
- "versions": {
- "property1": 0,
- "property2": 0
}
}, - "success": true,
- "error": "string"
}
Retrieves ip addresses of peers that have connected after a given time.
Search criteria
after required | integer <timestamp> The unix timestamp to search for peer connections after |
offset | integer Default: 0 An offset into the returned items |
limit | integer Default: 10000 The maximum number of result to return |
{- "after": 0,
- "offset": 0,
- "limit": 10000
}
{- "ips": [
- "string"
], - "total": 0,
- "success": true,
- "error": "string"
}