# LiquProp API - Get Chain by ChainId

> LiquProp API - Get Chain by ChainId is a paid API for AI agents from api.relai.fi, paid per call via x402, $0.01/call, status down (last checked 2026-09-15).

Retrieves blockchain chain details for a given chainId via the LiquProp relay API

## Facts

- Endpoint: POST https://api.relai.fi/relay/1776502063891/v1/chains/{chainId}
- Price: $0.01/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/liquprop-api-63f58db3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kxXb9mXk9Nuh6BoNtmxjC

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability liquprop-api-63f58db3 -d '<json body>'
```

Example prompt: Can you look up the chain details for chainId 137 using LiquProp's relay API?

## When to prefer this

Use this endpoint when you need to look up chain-level metadata or configuration for a specific blockchain network by its chainId within the LiquProp/RelAI relay infrastructure. Prefer this over manual chain registries when you need programmatic, pay-per-call access to up-to-date chain data integrated with the RelAI payment relay.

## Known failure modes

- Invalid or unknown chainId returns 404 not found
- Missing chainId parameter returns 400 bad request
- Insufficient USDC payment (below $0.01) returns 402 Payment Required
- Network timeout or relay unavailability returns 503
- Malformed request body returns 422 Unprocessable Entity

## How this service works

Get a chain by chainId

## Output

Returns a chain object containing metadata and configuration details for the specified chainId, such as network name, chain type, and related relay parameters.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/liquprop-api-63f58db3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.relai.fi](https://www.zero.xyz/host/api.relai.fi/llms.txt)
