{"uid":"cap_5xQAvDhg04s9Fl8MKIs0U","slug":"phantom-api-linea-token-balances-e8a2f0f7","name":"Phantom API — Linea Token Balances","description":"Lightning-fast access to blockchain data, smart contract insights, and Web3 infrastructure across 57+ networks. Pay-per-call via x402.","url":"https://phantom-api-omega.vercel.app/api/linea/token/balances","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"owner":{"type":"string"},"contractAddresses":{"type":"array","items":{"type":"string"}}}},"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_7zG4ZRbdTN1X1C1eJ1iKe","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":"Fetches ERC-20 and native token balances for a given wallet address on the Linea blockchain network","exampleAgentPrompt":"What ERC-20 token balances does the Linea wallet 0xAbC123...def hold? Check all tokens including contract addresses 0xTokenA and 0xTokenB.","exampleUseCases":[{"title":"DeFi portfolio snapshot on Linea","prompt":"Can you pull all token balances for my Linea wallet 0x1234...abcd so I can see my full DeFi portfolio on that network?"},{"title":"Verify token airdrop receipt","prompt":"I was supposed to receive an airdrop of the token at contract 0xDropToken on Linea — can you check if wallet 0xMyWallet has any balance of it yet?"},{"title":"Audit DAO treasury token holdings","prompt":"Check the token balances on Linea for our DAO treasury wallet 0xDAOTreasury, specifically for our governance token at 0xGovToken and the stablecoin at 0xUSDC."}],"resultDescription":"Returns a list of token balances associated with the specified owner wallet on the Linea network, including token contract addresses and balance amounts for each held token (native and ERC-20).","failureModes":["Invalid or malformed wallet address returns an error or empty result","Contract address not deployed on Linea returns zero balance or error","Linea RPC node unavailability causes timeout or 5xx error","Payment failure via x402 protocol blocks request","Empty contractAddresses array may return all tokens or require at least one entry depending on implementation"],"whenToPreferThis":"Use this endpoint when you specifically need token balance data on the Linea network (not Ethereum mainnet, Polygon, or other chains). Prefer this over generic blockchain RPCs when you need structured token balance aggregation without writing raw contract calls. At $0.01 USDC per call, it's cost-effective for one-off wallet checks, agent-driven portfolio monitoring, or DeFi dashboard integrations on Linea.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:47:29.580Z","isFirstParty":false}