Kettenwerk
wallet / pnl
Reads token movements of a wallet, prices every inflow and outflow at the time it happened, and derives cost basis, realised and unrealised profit or loss per asset. The method is stated because the result depends on it. Uncertainty is a mandatory field, not a footnote: an on-chain history knows nothing about deposits from exchanges, transfers between wallets of the same owner, or assets no price source covers. coverage_pct says which share of the movements carries a price; below sixty.
POST https://kette.halowerk.com/wallet/pnlEingaben
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
| wallet | string | Ja | Wallet address, 0x followed by 40 hex characters. |
| chains | array | Nein | Chains to query. Default: base. Each chain costs time, so the cap is two. |
| method | string | Nein | Cost basis method. The result depends on it and it is echoed in method_used. |
Vollständiges Eingabeschema anzeigen
{
"type": "object",
"required": [
"wallet"
],
"additionalProperties": false,
"properties": {
"wallet": {
"type": "string",
"description": "Wallet address, 0x followed by 40 hex characters."
},
"chains": {
"type": "array",
"maxItems": 2,
"items": {
"type": "string"
},
"description": "Chains to query. Default: base. Each chain costs time, so the cap is two."
},
"method": {
"type": "string",
"enum": [
"fifo",
"lifo",
"average"
],
"default": "fifo",
"description": "Cost basis method. The result depends on it and it is echoed in method_used."
}
}
}Veröffentlichtes Eingabebeispiel
{
"wallet": "beispiel",
"method": "fifo"
}Ergebnis & Dokumentation
Maschinenlesbare Dokumentation dieses Hubs
Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.
Weitere Endpunkte dieses Hubs
- Kettenwerk0,004 USDC
bridge / track
POSThttps://kette.halowerk.com/bridge/trackReads the source transaction on chain, identifies the bridge from the contracts it touched, and reports what actually left the wallet. overdue is measured against the usual duration of THAT bridge, and the comparison value is part of the an
- Kettenwerk0,003 USDC
chain / health
POSThttps://kette.halowerk.com/chain/healthQueries every public RPC endpoint this hub knows for a chain in parallel — at least three, usually five — and reports what each one says instead of trusting one. Disagreement is the valuable finding: a single endpoint that lags or serves a
- Kettenwerk0,006 USDC
contract / upgrade risk
POSThttps://kette.halowerk.com/contract/upgrade-riskUpgradeability alone is not a finding — every serious protocol is upgradeable. The finding is who holds the key and how much warning holders get. This endpoint reads the proxy pattern from the EIP-1967 slots, the clone bytecode or an implem