Reliability
AdamantApi checks configured nodes through the node status endpoint and selects a live node at an actual blockchain height. Safe GET failures can be retried against another healthy node. POST requests are retried only when no HTTP response was received; an explicitly rejected POST is never replayed automatically, avoiding pointless retries for validation errors.
Applications should provide several independently operated HTTPS nodes and handle returned errors. Malformed responses, timeouts, and partial network outages must not be treated as successful requests.
All expected failures use the normalized {success: false, errorMessage: string} result. See Error Handling for the complete contract and examples.
Health checks and node selection
- Nodes are probed via
/api/node/status, which since ADAMANT Node v0.9.0 exposes aloadersub-object that merges the previously separate/api/loader/statusand/api/loader/status/syncdata, reducing the number of health-check requests. - Nodes below
minVersion(inclusive) are reported and excluded from both API and WebSocket selection. - Node selection is height-aware: nodes that lag behind the network's actual height are not used.
Retries
- GET requests are safe to retry, and a failure on one node can be retried against another healthy node.
- POST requests are retried only when no HTTP response was received. A POST that received an explicit (4xx, or semantic 5xx) rejection is not replayed — this avoids endlessly retrying requests rejected for invalid input.
See the API Reference for the maxRetries, timeout, and checkHealthAtStartup options.