Service state, network and how to reach the chain
curl --request GET \
--url https://api.floprouter.com/healthconst options = {method: 'GET'};
fetch('https://api.floprouter.com/health', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.floprouter.com/health"
response = requests.get(url)
print(response.text){
"version": "v0.1.0+0000000",
"status": "ok",
"network": "devnet",
"genesis_hash": "0x99c172c095340ace980631f9123544c6bebd4839f3437e463533422d8be2d631",
"rpc": [
"wss://rpc.devnet.flop.network"
],
"explorer_url": "https://explorer.devnet.flop.network",
"uptime_s": 3600,
"finalized_block": 4510000,
"finality": {
"best_block": 4510004,
"finalized_block": 4510000,
"lag_blocks": 4,
"waiting": false,
"max_lag_blocks": 30
},
"registry": {
"synced_block": 4510000,
"miners": 40,
"active": 36,
"models": 6,
"channels": 5200
},
"endpoints": {
"verified": 12,
"verified_ready": 5,
"ready": 5
},
"payer": {
"available": true,
"modes": [
"grant",
"credit"
],
"demo": false,
"router_wallet": "5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty",
"delegates": 2
},
"billing": {
"deposit_address": "5CiPPseXPECbkjWCa6MnjNokrgYjMqmKndv2rSnekmSK2DjL",
"fee_percent": 5
},
"sessions": {
"total": 120,
"in_flight": 0,
"open_channels": 1
},
"index": {
"following": true,
"backfill_done": true
}
}Service
Service state, network and how to reach the chain
Service state: version, network, genesis hash, the chain’s public RPC addresses (rpc) and explorer base URL (explorer_url), finality, registry and endpoint counts, payer modes, deposit address and fee, session counts and a minimal index state. Wallet clients connect to rpc[0] to sign grants and deposits. Operators get the full view at /v1/admin/health with an operator key.
GET
/
health
Service state, network and how to reach the chain
curl --request GET \
--url https://api.floprouter.com/healthconst options = {method: 'GET'};
fetch('https://api.floprouter.com/health', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.floprouter.com/health"
response = requests.get(url)
print(response.text){
"version": "v0.1.0+0000000",
"status": "ok",
"network": "devnet",
"genesis_hash": "0x99c172c095340ace980631f9123544c6bebd4839f3437e463533422d8be2d631",
"rpc": [
"wss://rpc.devnet.flop.network"
],
"explorer_url": "https://explorer.devnet.flop.network",
"uptime_s": 3600,
"finalized_block": 4510000,
"finality": {
"best_block": 4510004,
"finalized_block": 4510000,
"lag_blocks": 4,
"waiting": false,
"max_lag_blocks": 30
},
"registry": {
"synced_block": 4510000,
"miners": 40,
"active": 36,
"models": 6,
"channels": 5200
},
"endpoints": {
"verified": 12,
"verified_ready": 5,
"ready": 5
},
"payer": {
"available": true,
"modes": [
"grant",
"credit"
],
"demo": false,
"router_wallet": "5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty",
"delegates": 2
},
"billing": {
"deposit_address": "5CiPPseXPECbkjWCa6MnjNokrgYjMqmKndv2rSnekmSK2DjL",
"fee_percent": 5
},
"sessions": {
"total": 120,
"in_flight": 0,
"open_channels": 1
},
"index": {
"following": true,
"backfill_done": true
}
}Response
200 - application/json
Health