{"uid":"cap_w3DmLZ8ZC6xC8kCoTmI-s","slug":"mach-gallery-base-contract-info-952794cf","name":"Mach Gallery Base Contract Info","description":"Fast, low-cost Base data for autonomous agents. No API keys, no subscriptions; pay per call with USDC over x402.","url":"https://api.mach.gallery/api/base/contract-info?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"Wallet or account address on Base mainnet."}}},"responseSchema":{"type":"json","example":{"name":null,"symbol":null,"network":"eip155:8453","decimals":null,"is_erc721":false,"is_erc1155":false,"is_contract":true,"bytecode_bytes":1000,"total_supply_atomic":null}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_dZ68K-_LRL1nqZeeXgZh6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns on-chain metadata for any EVM contract address on Base, including token type, name, symbol, decimals, bytecode size, and total supply.","exampleAgentPrompt":"Look up the contract info for Base address 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 — tell me its token name, symbol, decimals, and whether it's an ERC-721 or ERC-1155.","exampleUseCases":[{"title":"Token metadata enrichment pipeline","prompt":"I have a Base contract address 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 — can you pull its name, symbol, and decimals so I can display it correctly in my dashboard?"},{"title":"NFT contract type verification","prompt":"Can you check whether 0x03c4738Ee98aE44591e1A4A4F3CaB6641d95DD9a on Base is an ERC-721 or ERC-1155 NFT contract?"},{"title":"Unknown address classification","prompt":"I got this address from a transaction on Base — 0x4200000000000000000000000000000000000006 — can you tell me if it's actually a smart contract and how big its bytecode is?"}],"resultDescription":"A JSON object containing: contract name (or null), token symbol (or null), network identifier (eip155:8453), decimals (or null), boolean flags for ERC-721 and ERC-1155 token standards, a boolean confirming whether the address is a contract, bytecode size in bytes, and total supply in atomic units (or null if unavailable).","failureModes":["Invalid address format (not a 40-hex-character 0x address) — request rejected with validation error","Address is an EOA (externally owned account) not a contract — is_contract returns false, most fields null","Contract does not expose standard ERC-20/721/1155 interfaces — name, symbol, decimals, total_supply_atomic all null","Network unavailability or Base RPC errors — upstream timeout or error response","Insufficient USDC balance for x402 payment — payment fails before request is processed"],"whenToPreferThis":"Choose this endpoint when you need lightweight, structured on-chain metadata about a specific Base contract address without setting up API keys or subscriptions. It is ideal for AI agents that need to classify contract types (ERC-20, ERC-721, ERC-1155, or plain contract), enrich token data, or verify that an address is a deployed contract — all with pay-per-call USDC pricing via x402. Prefer this over Etherscan or Alchemy when operating on Base specifically and when per-call micropayment billing is preferred over monthly subscriptions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:34:00.476Z","isFirstParty":false,"canonicalSlug":"mach-gallery-base-contract-info-952794cf"}