{"uid":"cap_VB3s7SvJ-SO-zldWsjr2m","slug":"phantom-api-x-layer-token-metadata-1b4012a4","name":"Phantom API — X Layer Token Metadata","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/metadata?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"contractAddress":{"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_eFL_io_Xc5vjPuB3poScI","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 token metadata (name, symbol, decimals, etc.) for a given smart contract address on the X Layer (OKX) blockchain network.","exampleAgentPrompt":"What token is deployed at contract address 0xABC123... on X Layer? I need the name, symbol, and decimals.","exampleUseCases":[{"title":"Token identity verification for DeFi app","prompt":"I have the contract address 0x1234567890abcdef1234567890abcdef12345678 on X Layer — can you look up what token it is, including its name, symbol, and how many decimals it uses?"},{"title":"Portfolio tracker token enrichment","prompt":"I'm building a portfolio tracker and I have a list of token contract addresses on X Layer. Can you pull the metadata for the contract 0xabcdefabcdefabcdefabcdefabcdefabcdefabcd so I can display the proper token name and ticker?"},{"title":"Smart contract audit pre-check","prompt":"Before I audit this X Layer contract at address 0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef, can you grab its token metadata so I know what asset it represents?"}],"resultDescription":"Returns structured token metadata for the specified contract address on the X Layer network, typically including the token name, ticker symbol, number of decimals, and possibly additional on-chain metadata such as total supply or token standard.","failureModes":["Invalid or malformed contract address returns an error or empty response","Contract address exists but is not a token contract (e.g. a plain wallet or non-ERC20 contract) may return null fields","X Layer RPC node downtime may cause timeouts or 503 errors","Payment failure via x402 protocol results in 402 Payment Required before data is returned","Rate limiting or network congestion may slow or block responses"],"whenToPreferThis":"Use this endpoint when you specifically need token metadata (name, symbol, decimals) for a contract deployed on the X Layer (OKX EVM-compatible chain). Prefer this over generic block explorers when you need programmatic, pay-per-call access without API key management, or when building agents that need fast on-chain lookups across many contracts on X Layer specifically.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:55:43.629Z","isFirstParty":false,"canonicalSlug":"phantom-api-x-layer-token-metadata-1b4012a4"}