# EarnClaw Credits Top-Up

> EarnClaw Credits Top-Up is a paid API for AI agents from api.earnclaw.com, paid per call via x402, $1/call, status unknown (last checked 2026-09-14).

Adds USDC credits to an EarnClaw finance agent workspace account to fund autonomous trading, yield, and prediction agent operations

## Facts

- Endpoint: POST https://api.earnclaw.com/v1/x402/credits/topup
- Price: $1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/earnclaw-credits-top-up-214f5566
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_d3MaPdLJWE18ojlpUOh0K

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 earnclaw-credits-top-up-214f5566 -d '<json body>'
```

Example prompt: Top up my EarnClaw finance agent workspace with USDC credits so my autonomous trading and yield agents stay funded and keep running.

## When to prefer this

Use this endpoint when an EarnClaw workspace needs to be funded or refueled with USDC credits to keep autonomous finance agents (trading, yield, or prediction) operational. Prefer this over manual wallet transfers when integrating credit top-ups into automated agent lifecycle management or low-balance triggers.

## Known failure modes

- Insufficient USDC balance in the paying wallet — payment rejected
- Invalid or missing account identifier — 400 or 404 error
- x402 payment protocol failure — transaction not broadcast or confirmed
- Network/RPC errors causing payment to time out
- Duplicate transaction detection if retried too quickly — idempotency conflict

## How this service works

Not a chatbot. Deploy and scale autonomous finance agent organizations for trading, yield, and prediction. Governance before execution.

## Output

A JSON response confirming the credit top-up transaction, including the amount added, updated credit balance, and transaction reference for the USDC payment processed via x402.

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/earnclaw-credits-top-up-214f5566/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.earnclaw.com](https://www.zero.xyz/host/api.earnclaw.com/llms.txt)
