Hanzo AI
OpenapiMarket

List survey

Answers which of the four settlement precompiles carry code on one chain.

GET /v1/market/survey

Addresshttps://api.hanzo.ai/v1/market/survey
MethodGET
Operationget_market_survey
AuthAuthorization: Bearer $HANZO_API_KEY

Answers which of the four settlement precompiles carry code on one chain.

An address with no code answers a call with empty data rather than an error, so "this chain has no view precompile" and "this market was never opened" reach a caller as the same silence — and only the second is a fact about a market. This says which it is, by asking the node for the code at each address.

It reads presence and nothing else. No market, no quote, no depth and no order is requested here, and eth_getCode is the only method this operation ever sends.

Request

1 field.

FieldInTypeRequiredDescription
chainquerystringChain is the chain's slug — cchain, zoo — as chains reports it.

Response

StatusBodyMeaning
200market.Surveyok
defaultproblem-detailsrefused

200 body — 10 fields.

FieldInTypeAlwaysDescription
carriesbodymarket.Precompile[]Carries is all four where the node answered and null where it did not.
carries[].atbodystring
carries[].codebodybooleanCode is whether the address carries any. False is an ANSWER — the node replied and there is nothing deployed there — and is not the same as the read having…
carries[].namebodystring
carries[].rolebodystring
chainbodystring
reachbodymarket.Reach
reach.atbodystringAt is read, unconfigured, unreachable or refused.
reach.whybodystringWhy is the upstream's own words, on Unreachable and Refused, and empty otherwise.
rpcbodystringRPC is the endpoint that was asked, so an answer names where it came from.

Failure carries the platform error shape — see Errors.

Examples

hanzo market survey

Market API · All Hanzo APIs · Interactive reference

How is this guide?

On this page