{"uid":"cap_s_UJUsKgSZ0-h0rVda_Cy","slug":"financial-data-x402-smart-contract-source-lookup-e3b2edc6","name":"Financial Data x402 – Smart Contract Source Lookup","description":"Pay-per-call stock, macro, on-chain, and crypto data over the x402 protocol. USDC on Base or Solana, no API keys, no subscriptions.","url":"https://x402financialdata.com/contract-source/%7Baddress%7D","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"required":{"type":"string"},"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"abi":[{"name":"someFunction","type":"function","inputs":[],"outputs":[],"constant":false}],"chain":"eth","address":"0xbb9bc244d798123fde783fcc1c72d3bb8c189413","is_proxy":false,"verified":true,"source_code":"pragma solidity ^0.4.26;\n\ncontract Test12345 { ... }","contract_name":"Test12345","compiler_version":"v0.4.26+commit.4563c3fc","optimization_used":true,"implementation_address":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_7LoNBWf4EaXq5RnV6r9xd","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":"Retrieves verified ABI, source code, and metadata for a smart contract at a given blockchain address via pay-per-call x402 micropayment.","exampleAgentPrompt":"Can you pull the verified source code and ABI for the smart contract at 0xbb9bc244d798123fde783fcc1c72d3bb8c189413 on Ethereum?","exampleUseCases":[{"title":"Audit proxy contract implementation","prompt":"I need to check whether the contract at 0x1234567890abcdef1234567890abcdef12345678 is a proxy, and if so what the implementation address is — can you fetch its on-chain metadata?"},{"title":"Retrieve ABI for DeFi integration","prompt":"Get me the full ABI for the deployed contract at 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 so I can figure out which functions it exposes."},{"title":"Verify compiler and optimization settings","prompt":"What compiler version and optimization settings were used to deploy the contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48? I want to make sure it matches the published source."}],"resultDescription":"Returns a JSON object containing the contract's ABI (array of function/event descriptors), raw Solidity source code, contract name, compiler version, chain identifier, whether the contract is verified, whether optimization was used during compilation, whether the contract is a proxy, and the implementation address if applicable.","failureModes":["Invalid or malformed contract address returns an error or empty result","Unverified contracts may return partial data or no source code","Contract addresses on unsupported chains return no data","Payment failure via x402 protocol results in HTTP 402 and no data returned","Network timeouts on slow RPC nodes may delay response"],"whenToPreferThis":"Choose this endpoint when you need on-chain smart contract source code, ABI, and deployment metadata without setting up API keys or subscriptions — especially in agent workflows that pay micropayments per call via the x402 protocol using USDC on Base or Solana. Prefer it over Etherscan API or similar when you want a pay-as-you-go, keyless approach suitable for autonomous agents.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-08T06:38:29.237Z","isFirstParty":false}