Inspect a Base smart-contract address before interacting with it
Inspect a Base smart-contract address before interacting with it. Returns deterministic bytecode hash/size, EIP-1967 implementation information, ERC-20 metadata when available, and the current chain head. Read-only and does not make safety or legitimacy claim…
by agent-api-testnet.tim1712.workers.dev · discovered, not yet claimed by its owner · updated 2026-08-30
Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.
What it does
Inspect a Base smart-contract address before interacting with it. Returns deterministic bytecode hash/size, EIP-1967 implementation information, ERC-20 metadata when available, and the current chain head. Read-only and does not make safety or legitimacy claims.
Tags: bazaar
Use with an agent
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/8367.jsonfor the price and payment options. - Pay. Call
GET https://agent-api-testnet.tim1712.workers.dev/v1/evm/contract-preflight. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with the data. Agent Bazaar is not in the request path and never sees your payment.
For humans
You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base Sepolia, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.
Pricing & payment
- Price
- see accepts
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Base Sepolia
- Uptime
- 1 of the last 1 checks answered
- Calls (30d)
- 1 · 1 unique payers (third-party data from the public x402 Bazaar)
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base Sepolia eip155:84532 | USDC | 5000 | 0x5229384BD502D85aa7EcA0A31B515E5E48d3910F | 300s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:84532",
"payTo": "0x5229384BD502D85aa7EcA0A31B515E5E48d3910F",
"asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
"amount": "5000",
"maxTimeoutSeconds": 300
}
]Schemas
Output schema (JSON Schema)
{
"bazaar": {
"info": {
"input": {
"body": {
"address": "0x036CbD53842c5426634e7929541eC2318f3dCF7e"
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"address": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
"chain": {
"blockNumber": 25000000,
"headAgeSeconds": 2,
"headTimestamp": "2026-08-30T10:00:00.000Z"
},
"chainId": 84532,
"checkedAt": "2026-08-30T10:00:02.000Z",
"codeHash": "0x8e8f23e7f585953f9438e890f6f2c7f4287fef3a543aa48a8f6f547e840f5a87",
"codeSizeBytes": 492,
"isContract": true,
"network": "base-sepolia",
"proxy": {
"detected": true,
"implementation": "0xd74cc5d436923b8ba2c179b4bCA2841D8A52C5B5",
"type": "eip1967"
},
"token": {
"decimals": 6,
"erc20Like": true,
"name": "USDC",
"symbol": "USDC",
"totalSupply": "1000000000000"
}
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"address": {
"pattern": "^0x[0-9a-fA-F]{40}$",
"type": "string"
}
},
"required": [
"address"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"additionalProperties": false,
"properties": {
"address": {
"pattern": "^0x[0-9a-fA-F]{40}$",
"type": "string"
},
"chain": {
"additionalProperties": false,
"properties": {
"blockNumber": {
"minimum": 0,
"type": "integer"
},
"headAgeSeconds": {
"minimum": 0,
"type": "integer"
},
"headTimestamp": {
"type": "string"
}
},
"required": [
"blockNumber",
"headTimestamp",
"headAgeSeconds"
],
"type": "object"
},
"chainId": {
"const": 84532,
"type": "number"
},
"checkedAt": {
"type": "string"
},
"codeHash": {
"anyOf": [
{
"pattern": "^0x[0-9a-fA-F]{64}$",
"type": "string"
},
{
"type": "null"
}
]
},
"codeSizeBytes": {
"anyOf": [
{
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
]
},
"isContract": {
"type": "boolean"
},
"network": {
"const": "base-sepolia",
"type": "string"
},
"proxy": {
"additionalProperties": false,
"properties": {
"detected": {
"type": "boolean"
},
"implementation": {
"anyOf": [
{
"pattern": "^0x[0-9a-fA-F]{40}$",
"type": "string"
},
{
"type": "null"
}
]
},
"type": {
"anyOf": [
{
"const": "eip1967",
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"detected",
"type",
"implementation"
],
"type": "object"
},
"token": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"decimals": {
"anyOf": [
{
"maximum": 255,
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
]
},
"erc20Like": {
"type": "boolean"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"symbol": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"totalSupply": {
"anyOf": [
{
"pattern": "^\\d+$",
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"erc20Like",
"name",
"symbol",
"decimals",
"totalSupply"
],
"type": "object"
},
{
"type": "null"
}
]
}
},
"required": [
"network",
"chainId",
"address",
"isContract",
"codeSizeBytes",
"codeHash",
"proxy",
"token",
"chain",
"checkedAt"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Example shape — generated from the schema, not a captured live response
nullExamples
curl "https://agent-api-testnet.tim1712.workers.dev/v1/evm/contract-preflight"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paidconst res = await fetch("https://agent-api-testnet.tim1712.workers.dev/v1/evm/contract-preflight");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}import httpx
res = httpx.get("https://agent-api-testnet.tim1712.workers.dev/v1/evm/contract-preflight")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- agent-api-testnet.tim1712.workers.dev
- Endpoint
- https://agent-api-testnet.tim1712.workers.dev/v1/evm/contract-preflight
- Machine-readable
/resources/8367.json