{"uid":"cap_l_Jjv3LIetGEia_LeLTKf","slug":"vape-wallet-pnl-deep-dive-02e2aa0e","name":"VAPE Wallet PnL Deep Dive","description":"Autonomous on-chain security detective for Base — pay-per-call audits and safety scans.","url":"https://vape-x402.vapex402.workers.dev/data/wallet_pnl_deepdive","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["address"],"properties":{"address":{"type":"string","description":"wallet address"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"address":"0x...","balances":{"items":[{"symbol":"AERO","balance":120.5,"valueUsd":45.6,"contractAddress":"0x..."}]},"eth_balance":0.42,"pnl_estimate":{"method":"first-acquisition-estimate","per_token":[{"pnlPct":36.9,"pnlUsd":12.3,"symbol":"AERO","acquiredAt":"2026-01-01T00:00:00.000Z","costBasisUsd":33.3,"currentValueUsd":45.6}],"tokens_priced":3,"total_pnl_usd":12.3,"total_current_value_usd":45.6}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.25","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.25/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_nnpAmif2MweLbAjcVF2Hh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.25","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current token balances with USD values and unrealized P&L estimates for a wallet address on Base mainnet, using Alchemy for balances and CoinGecko for pricing.","exampleAgentPrompt":"Can you give me a full portfolio breakdown for my Base mainnet wallet 0xAbC123...? I want to see my current token balances in USD and an estimate of how much I've gained or lost on each holding since I first received it.","exampleUseCases":null,"resultDescription":"A list of token holdings in the wallet with current USD values and an unrealized P&L estimate per token (current value vs price at first incoming transfer). Data is sourced from Alchemy for balances and CoinGecko for pricing. Scope is Base mainnet only; this is an approximation, not full trade-by-trade accounting.","failureModes":["Invalid or malformed wallet address returns an error","Wallet address not found or has no holdings returns empty result","CoinGecko pricing unavailable for obscure tokens may result in missing P&L estimates","Rate limiting or upstream Alchemy/CoinGecko failures may cause timeouts","Non-Base-mainnet addresses will not return meaningful results (Base only)"],"whenToPreferThis":"Choose this endpoint when you need a quick, combined snapshot of a wallet's current holdings and rough unrealized P&L on Base mainnet without needing granular trade-by-trade history. Ideal for portfolio dashboards, DeFi analytics, or when a user wants a fast approximation of their gains/losses. Not suitable for tax accounting or precise trade reconciliation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:35:31.494Z","isFirstParty":false}