{"uid":"cap_ORnd17qapl8aTrG4AUzju","slug":"zerion-wallet-pnl-5dc40d03","name":"Zerion Wallet PnL","description":"DeFi/web3 interactions for agents","url":"https://api.zerion.io/v1/wallets/:address/pnl?utm_source=zero.xyz","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 (EVM 0x or Solana base58)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":"string","description":"Resource ID."},"type":{"type":"string","description":"Resource type."},"attributes":{"type":"object","description":"Resource attributes; see https://developers.zerion.io"}}},"links":{"type":"object","description":"Self and pagination links."}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_hZcKda2Bo7YIQ_yaZDn9V","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns profit and loss (PnL) data for a given EVM or Solana wallet address across DeFi positions","exampleAgentPrompt":"Can you pull up the profit and loss summary for my Ethereum wallet 0x742d35Cc6634C0532925a3b844Bc454e4438f44e using Zerion?","exampleUseCases":[{"title":"Personal DeFi portfolio performance review","prompt":"Show me the overall profit and loss for my wallet 0x742d35Cc6634C0532925a3b844Bc454e4438f44e — I want to know how much I've made or lost across all my DeFi positions."},{"title":"Evaluating a trader's track record","prompt":"I'm considering copying a trader's strategy — can you look up the PnL history for their wallet address 0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe so I can see how well they've actually performed?"},{"title":"Monitoring Solana wallet gains for tax prep","prompt":"I need to review my gains and losses for my Solana wallet 7EcDhSYGxXyscszYEp35KHN8vvw3svAuLKTzXwCFLtV — can you fetch the PnL data from Zerion so I have a starting point for my taxes?"}],"resultDescription":"Returns a JSON object with a data field containing the resource ID, resource type, and attributes describing the wallet's profit and loss metrics (such as realized gains, unrealized gains, and overall performance) along with self and pagination links. Full attribute details are documented at developers.zerion.io.","failureModes":["Invalid wallet address format returns an error (must be EVM 0x or Solana base58)","Wallet address with no on-chain history may return empty or null PnL attributes","Rate limiting or payment failure (x402) if the per-call fee is not settled","Unsupported chain or address type may return no data","Network timeout if the Zerion backend is slow to aggregate multi-chain data"],"whenToPreferThis":"Use this endpoint when you specifically need profit and loss metrics for a wallet — not just portfolio balances or token holdings. It is best suited when the user wants performance analytics (gains/losses) rather than a snapshot of current holdings. Prefer this over generic balance endpoints when the question is 'how much has this wallet made or lost?' rather than 'what does this wallet hold?'","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:39:42.640Z","isFirstParty":false,"canonicalSlug":"zerion-wallet-pnl-5dc40d03"}