{"uid":"cap_eLKNY1akgAlUmjoKA7iOt","slug":"kette-wallet-pnl-calculator-c2fbde19","name":"Kette Wallet PnL Calculator","description":"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 percent t","url":"https://kette.halowerk.com/wallet/pnl","method":"POST","headers":{},"bodySchema":{"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."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.012","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.012/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.012","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.012","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__EhPDlj9NZW5z0OJNyUP1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.012","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes cost basis, realized and unrealized profit/loss per asset for a crypto wallet by pricing every inflow and outflow at the time of occurrence, with explicit uncertainty and price coverage metrics.","exampleAgentPrompt":"Calculate the realized and unrealized profit and loss for wallet 0xABC...123 on Ethereum using FIFO accounting, and tell me what percentage of the movements had price coverage.","exampleUseCases":[{"title":"DeFi Portfolio Tax Reporting","prompt":"I need to figure out my realized gains and losses for my Ethereum wallet 0xABC...123 over the past year using FIFO accounting — can you pull the PnL breakdown per asset and flag how confident the numbers are?"},{"title":"On-chain Trading Performance Review","prompt":"What's my overall profit or loss on wallet 0xDEF...456 on Arbitrum? Use LIFO accounting and show me both realized and unrealized PnL per token, along with the coverage percentage so I know how reliable the estimate is."},{"title":"Investor Due Diligence on Wallet","prompt":"I'm evaluating a trader's track record — can you compute the cost basis and realized PnL for wallet 0x789...ABC on Base, and tell me what fraction of their token movements could actually be priced?"}],"resultDescription":"Returns cost basis, realized P&L, and unrealized P&L per asset held in the wallet, the accounting method used, a coverage_pct indicating what share of movements had a matching price, and an explicit uncertainty indicator flagging gaps caused by off-chain deposits, inter-wallet transfers, or unpriced assets.","failureModes":["Wallet address not found or invalid — returns error","Coverage below 60% — results returned but flagged as low-confidence","Unsupported chain — endpoint may reject or return empty","No price data available for exotic tokens — those assets excluded from PnL","Rate limiting or payment failure — call rejected before computation"],"whenToPreferThis":"Use this endpoint when you need granular, per-asset cost basis and P&L for an on-chain wallet with explicit uncertainty quantification. It is superior to generic portfolio trackers when accounting method matters (FIFO vs LIFO), when you need coverage transparency for tax or audit purposes, or when operating on EVM chains like Ethereum, Base, Arbitrum, Optimism, Polygon, or BNB Smart Chain. Prefer it over exchange-based PnL tools when analyzing purely on-chain activity.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:31:37.717Z","isFirstParty":false}