services
08

Health API

whether quotes and swaps can be served

One cached object: router status, what the builder can build, and the price table's age. getHealth is the validator's health, on RPC.

carbium://health · health.sh
# Health  the quote plane's own readiness, not the validator's.curl https://services.carbium.sh -H 'content-type: application/json' -H 'x-api-key: <YOUR_KEY>' \  -d '{"jsonrpc":"2.0","id":1,"method":"health"}'# -> HTTP 200, x-request-id ec90d3837b9d339ee18c97bd19e769d2# {"jsonrpc":"2.0","id":1,"result":{"ok":true,"quoteUpstream":true,"canBuild":true,#   "families":["r-amm","r-cpmm","r-clmm","r-lpad","o-whirlpool","o-orca-v1","o-orca-v2","m-dlmm","m-damm","m-damm-v2","m-dbc","m-dbc-hook","pump-curve","pump-amm","manifest","pancakeswap-v3","byreal"],#   "poolStore":true,"chainRpc":true,"priced":4202,"total":4202,"stale":0,"tableAgeSecs":14,"quote_refusal_ratio":0.0000}}## getHealth on this same door is the VALIDATOR's liveness. A different question:# -> {"jsonrpc":"2.0","result":"ok","id":1}

result

health/shape
fieldtypemeaning
params · none
result · always all eleven fields
okbooleanrouter healthy and builder can build
quoteUpstreambooleanrouter answered healthy; false with counts filled in: it answered degraded
canBuildbooleanbuilder answered and can build
families[]arrayvenue family labels the builder can build; labels, never addresses
poolStorebooleanbuilder reached its pool store
chainRpcbooleanbuilder reached its validator RPC
pricednumberpriced rows in the table
totalnumberrows in the table
stalenumberrows marked stale
tableAgeSecsnumberseconds since the last table rebuild
quote_refusal_rationumberrefused over quotes sent to the router from this endpoint, last 15 minutes; 0 if none were sent
$A dependency that is down still answers HTTP 200. Router down: ok and quoteUpstream false, counts 0. Builder down: canBuild false, families empty. Every value is a boolean, a count or a label checked for length and alphabet.
!health draws nothing from your quote plan. Cached 2 s.

refusals

health/refusals
httpcodemessagewhat to do
400-32602quote is not batchableone call per request
503-32011quote plane upstream not configuredno router connected
$Needs the QUOTE scope and quote module. Key, scope, module and rate limit are checked first.

methods

healthreturns {ok, quoteUpstream, canBuild, families: [], poolStore, chainRpc, priced, total, stale, tableAgeSecs, quote_refusal_ratio}