Health Check: Endpoints #19
adamantmm
announced in
Dev Guidelines & Docs
Replies: 1 comment
-
|
Hi, I think this structure makes sense:
I like that you’re distinguishing between node endpoints and indexer/service endpoints. Future improvements
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
See also: Health Check: Algorithm, General Description
For the health check, we receive the current node height or the update timestamp for a service.
Receiving the node version is optional and is done only if no additional requests are required.
Node and Service Health Check Endpoints
https://endless.adamant.im/api/node/statushttps://info.adamant.im/statusgetblockchaininfoandgetnetworkinfoExample:
curl --data-binary '[{"jsonrpc":"1.0","id":"curltext1","method":"getblockchaininfo","params":[]}, {"jsonrpc":"1.0","id":"curltext2","method":"getnetworkinfo","params":[]}]' -H 'content-type:text/plain;' https://dogenode1.adamant.imhttps://btcnode2.adamant.im/blocks/tip/heighteth_blockNumberandweb3_clientVersionExample:
curl --data '[{"method":"eth_blockNumber","params":[],"id":1,"jsonrpc":"2.0"}, {"method":"web3_clientVersion","params":[],"id":2,"jsonrpc":"2.0"}]' -H "Content-Type: application/json" -X POST localhost:8545Response:
[{"id":1,"result":"0x120802f"}, {"id":2,"result":"Geth/v1.13.5-stable-916d6a44/linux-amd64/go1.21.4"}]Client names look like:
Geth/v1.13.5,Nethermind/v1.22.0https://ethnode3.adamant.im/max_blockgetblockchaininfoandgetnetworkinfoExample:
curl --data-binary '[{"jsonrpc":"1.0","id":"curltext1","method":"getblockchaininfo","params":[]}, {"jsonrpc":"1.0","id":"curltext2","method":"getnetworkinfo","params":[]}]' -H 'content-type:text/plain;' https://btcnode1.adamant.im/bitcoindhttps://dogenode1.adamant.im/api/statusgetStatusRPC (combinegetnetworkinfofor version +getblockchaininfofor height)system_getNodeInfoRPChttps://klyservice2.adamant.im/api/v3/network/statushttps://ipfs4.adm.im/api/node/infoIn process: add more IPFS info for Health check
Beta Was this translation helpful? Give feedback.
All reactions