# LiquProp API - Get Contract by Address with ABI

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

Retrieves a smart contract's details and ABI by chain ID and contract address

## Facts

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

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-67ea18a1 -d '<json body>'
```

Example prompt: Can you look up the smart contract at address 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on chain ID 1 and give me its ABI so I can interact with it?

## When to prefer this

Use this endpoint when you need to retrieve a smart contract's ABI and metadata by address on a specific EVM chain, particularly when you want a gas-free lookup sponsored by RelAI on Polygon or need on-demand ABI resolution without maintaining your own contract registry.

## Known failure modes

- Invalid or non-existent contract address returns an error or empty result
- Unsupported chainId returns an error
- Address is an EOA (externally owned account) with no ABI
- Payment failure (x402 payment of 0.01 USDC not processed) blocks request
- Network or relay downtime causes timeout

## How this service works

Get a contract by address (with ABI)

## Output

Returns the smart contract's ABI (Application Binary Interface) along with contract metadata for the specified address on the given chain, enabling downstream contract interaction and function call encoding.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/liquprop-api-67ea18a1/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)
