{"uid":"cap_x-BhOe8bjxePk8Ru_9VPv","slug":"phantom-api-x-layer-token-balances-f500c8d2","name":"Phantom API — X Layer 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/xlayer/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_yUgbArS2CYEVwZpvT9z8E","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 token balances for a given wallet address on the X Layer (OKX) blockchain network, optionally filtered by specific contract addresses","exampleAgentPrompt":"Can you look up all the token balances for wallet address 0xAbCd1234... on the X Layer network, and specifically check how much of the token at contract 0x5678Ef90... they hold?","exampleUseCases":[{"title":"DeFi portfolio audit on X Layer","prompt":"What tokens does the wallet 0xDeAdBeEf0000000000000000000000000000cafe hold on X Layer? I want to see everything in that address."},{"title":"Verify token receipt on X Layer","prompt":"Did the wallet 0x1234567890abcdef1234567890abcdef12345678 receive any of the token at contract 0xaabbccdd11223344556677889900aabbccddee00 on X Layer yet?"},{"title":"Filter specific holdings for compliance","prompt":"Check which of these three token contracts — 0xAAA..., 0xBBB..., 0xCCC... — the wallet 0xUser1234... actually holds a balance in on X Layer."}],"resultDescription":"Returns a list of token balances associated with the queried wallet address on the X Layer network. Each entry typically includes the token contract address, token symbol or name, raw and/or formatted balance amounts, and decimals. If contract addresses are specified, results are filtered to only those tokens.","failureModes":["Invalid or malformed owner wallet address returns an error or empty result","Unknown contract addresses return zero balance or are omitted","X Layer network congestion or RPC unavailability may cause timeouts","Non-checksum Ethereum addresses may be rejected","Empty contractAddresses array may return all tokens or require at least one entry depending on implementation"],"whenToPreferThis":"Use this endpoint when you need fast, pay-per-call token balance lookups specifically on the X Layer (OKX) network without maintaining your own RPC node. Prefer it over general-purpose blockchain RPCs when you want a simple REST API interface rather than raw JSON-RPC calls, and when querying a portfolio of specific tokens for a given wallet. It is ideal for lightweight agents that need on-demand balance checks without subscription overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:52:31.535Z","isFirstParty":false}