# HALOWERK kettenwerk Wallet PnL

> HALOWERK kettenwerk Wallet PnL is a paid API for AI agents from kette.netzhandwerker.de, paid per call via x402, $0.012/call, status unknown (last checked 2026-09-14).

Calculates profit and loss (PnL) for a given wallet address across blockchain networks using a specified cost basis method (FIFO, LIFO, or average)

## Facts

- Endpoint: POST https://kette.netzhandwerker.de/wallet/pnl
- Price: $0.012/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/halowerk-kettenwerk-wallet-pnl-1b3ab292
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sl-ouhIUJbO9HweKYvKmB

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 halowerk-kettenwerk-wallet-pnl-1b3ab292 -d '<json body>'
```

Example prompt: Can you calculate the profit and loss for my wallet 0xAbC1234567890abcdef1234567890abcdef123456 on Base using the FIFO cost basis method?

## When to prefer this

Choose this endpoint when you need on-chain PnL computation for a specific wallet address with support for different cost basis accounting methods (FIFO, LIFO, average). It is particularly useful for DeFi portfolio analytics, crypto tax preparation, or trading performance reviews on Base or other supported EVM chains. Prefer this over generic portfolio trackers when you need cost-basis-aware PnL rather than just current balance or token holdings.

## Known failure modes

- Invalid wallet address format (not 0x + 40 hex chars) returns an error
- Requesting more than 2 chains exceeds the cap and may fail or be truncated
- Unsupported chain name causes query failure
- Payment via x402/USDC on Base Mainnet not completed causes 402 response
- Wallet with no transaction history may return zero or empty PnL
- Network timeout if queried chains are slow to respond

## How this service works

HALOWERK kettenwerk — bezahlte Endpunkte nach x402. Preise in USDC auf Base Mainnet.

## Output

Returns a profit and loss calculation for the specified wallet address, broken down by the requested chain(s), including the cost basis method used (echoed as method_used) and computed gain/loss figures derived from on-chain transaction history.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chains": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "maxItems": 2,
   "description": "Chains to query. Default: base. Each chain costs time, so the cap is two."
  },
  "method": {
   "enum": [
    "fifo",
    "lifo",
    "average"
   ],
   "type": "string",
   "default": "fifo",
   "description": "Cost basis method. The result depends on it and it is echoed in method_used."
  },
  "wallet": {
   "type": "string",
   "description": "Wallet address, 0x followed by 40 hex characters."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/halowerk-kettenwerk-wallet-pnl-1b3ab292/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kette.netzhandwerker.de](https://www.zero.xyz/host/kette.netzhandwerker.de/llms.txt)
