Hanzo
OpenapiWeb3

Reports the chains this deployment can reach.

Reports the chains this deployment can reach.

GET /v1/web3/chains

Addresshttps://api.hanzo.ai/v1/web3/chains
MethodGET
Operationget_web3_chains
AuthAuthorization: Bearer $HANZO_API_KEY

Reports the chains this deployment can reach. The list is the declared registry, so it is exactly what /v1/web3/rpc will accept — a chain that appears here is one this deployment actually has an upstream for.

Request

GET /v1/web3/chains takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200chainListok

200 body — 4 fields.

FieldInTypeAlwaysDescription
chainsbodyChain[]Chains is every chain this deployment is configured to reach, sorted by id.
chains[].chainIdbodyintegerChainID is the EIP-155 id, so a caller can check it matches the wallet they are about to sign with.
chains[].idbodystringID is the URL name: the value of :chain.
chains[].namebodystringName is for humans.

Failure carries the platform error shape — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.


Web3 API · All Hanzo APIs · Interactive reference

How is this guide?

On this page