# AmanChain Wallet Portfolio

> AmanChain Wallet Portfolio is a paid API for AI agents from amanchain-relay.gitajhd.workers.dev, paid per call via x402, $0.007465/call, status unknown (last checked 2026-09-16).

Retrieves a complete on-chain portfolio breakdown for any blockchain wallet address, including token balances and holdings, executed against live consensus state.

## Facts

- Endpoint: POST https://amanchain-relay.gitajhd.workers.dev/api/x402/aman-wallet-portfolio
- Price: $0.007465/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/amanchain-wallet-portfolio-339eb10c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yqPinNOPRraFvjsCtZTFs

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 amanchain-wallet-portfolio-339eb10c -d '<json body>'
```

Example prompt: Pull up the complete on-chain portfolio for wallet address 0x742d35Cc6634C0532925a3b8D4C9b0F15c8d3e21 — show me all token balances and holdings.

## When to prefer this

Choose this endpoint when you need a complete, live on-chain portfolio snapshot for any wallet address without requiring an API key or account setup. It is ideal for agents that need trustless, node-verified balance data paid per-call in USDC, particularly when querying arbitrary addresses across supported chains without prior registration.

## Known failure modes

- Invalid or malformed wallet address returns an error response
- Address with no on-chain activity may return empty portfolio
- Network congestion or node unavailability may cause timeouts
- Payment failure via x402/USDC results in request rejection
- Missing or incorrect serviceId field causes request routing failure

## How this service works

On-chain wallet portfolio for any address — native balance, staked amount, token holdings and total USD value; crypto portfolio API. Deterministic on-chain execution by the AmanChain node — live consensus state, real blocks, pools and balances. Pay per call via x402 (USDC on Base), no account, no API key. POST JSON {"serviceId":"aman-wallet-portfolio","request":"<input>"}.

## Output

Returns a complete on-chain portfolio for the specified wallet address, including all token balances, asset holdings, and relevant on-chain state data, sourced directly from live blockchain consensus state via the AmanChain node.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "body": {
     "type": "object"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "example": {
      "ok": true
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/amanchain-wallet-portfolio-339eb10c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from amanchain-relay.gitajhd.workers.dev](https://www.zero.xyz/host/amanchain-relay.gitajhd.workers.dev/llms.txt)
