{"uid":"cap_zDCM-MFllp31X9nwyoOii","slug":"tollex-chain-get-code-37e6901a","name":"Tollex Chain Get Code","description":"Tollex lets software agents buy APIs and tools under rules you set: it finds a capability that fits, checks your policy before anything is signed, pays with x402 in USDC on Base or USDG on Robinhood Chain, reconciles uncertain payments and returns a signed receipt.","url":"https://api.tollex.org/tools/chain_get_code?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}}},"responseSchema":{"type":"json","example":{"tool":{"id":"chain_get_code","version":"1.0.0","provider":"tollex.robinhood-chain"},"result":{"size":1650,"address":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","codeHash":"0x7a3d7400b27830f4f91c2c16a082486d67c1befecaec2f53b33f1f35d5b62036","isContract":true,"eip7702Delegate":null,"erc1967Implementation":null},"evidence":[],"untrustedOutput":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0079","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.0079/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0079","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0079","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ylivUHyM2eiHChnm3YziU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0079","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves the deployed bytecode for a smart contract at a given Ethereum-compatible address on-chain","exampleAgentPrompt":"Can you fetch the deployed bytecode for the smart contract at 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 on-chain?","exampleUseCases":[{"title":"Verify contract deployment before integration","prompt":"I need to confirm that a smart contract is actually deployed at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 — can you pull the on-chain bytecode so I know there's real code there?"},{"title":"Audit contract code presence on-chain","prompt":"As part of my security review, can you retrieve the raw bytecode deployed at 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 so I can check it matches the expected contract?"},{"title":"Debug missing contract deployment","prompt":"Something seems wrong — can you check if there's any code deployed at 0xdAC17F958D2ee523a2206206994597C13D831ec7? I want to see the bytecode or confirm it's an empty address."}],"resultDescription":"Returns the raw EVM bytecode (hex-encoded) deployed at the specified Ethereum-compatible address, along with a signed payment receipt confirming the USDC payment was processed via x402.","failureModes":["Invalid address format (not matching 0x + 40 hex chars) returns a validation error","Address with no deployed code returns empty bytecode (EOA or undeployed address)","Network or RPC errors may cause lookup failures","Payment settlement failures if USDC balance is insufficient","Uncertain payment states are reconciled and a receipt returned or error surfaced"],"whenToPreferThis":"Use this endpoint when you need to fetch the raw on-chain bytecode of a smart contract by address and are operating in an agent context that supports x402 micropayments in USDC. Prefer this over free public RPC calls when you need a managed, policy-checked, receipted transaction with reconciliation guarantees — especially in autonomous agent pipelines where auditability and payment provenance matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T12:47:58.225Z","isFirstParty":false,"canonicalSlug":"tollex-chain-get-code-37e6901a"}