Buy one on-chain fact about a Base contract
buy_contract_dataPaid over x402 in USDC on Base, from 0.0049 per call. Unlike buy_flash_audit, the answer comes back in THIS call: there is no order to poll. A first read of an address can take up to 60s: keep the connection open. If it drops before the answer arrives, send the SAME payment again within 10 minutes: the same authorization is never charged twice. Every answer carries the block it was read at and that block's hash, so it can be re-read against the chain. Call contract_data_catalog first for the list and prices. Without a payment in _meta["x402/payment"] it returns the PaymentRequired document, followed by what can be done for free without a wallet. If the payment is read but does not pass (wrong amount or recipient, insufficient balance, bad signature, expired or already-used authorization), it returns the PaymentRequired document again (isError) with the x402 errorReason in its "error" field; this call charges nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product | Yes | Which fact to buy. See the catalog tool. | |
| targetAddress | No | Contract or token address on Base mainnet (eip155:8453). Required for every product whose catalog entry says needsTargetAddress=true. |