---
name: ai-agent-shop-onchain-prechecks
description: Pay-per-call on-chain pre-checks on Base over x402 (USDC). Use before minting an NFT, before paying an unfamiliar x402 endpoint, or before trading or lending against a tokenized stock.
---

# AI Agent Shop: on-chain pre-checks on Base

Facts only, not advice. Every response lists what could not be measured in `notMeasured`, and risks in `flags` (machine-readable `code` plus a short `note`).

## How to pay

- Protocol: x402 v2, scheme `exact`, USDC on Base (eip155:8453). No account, no API key.
- Call the endpoint without payment, read the `PAYMENT-REQUIRED` header (402), sign, and retry with `PAYMENT-SIGNATURE`. Any x402 client works (for example `@x402/fetch`, Coinbase agentic wallet / Base MCP `initiate_x402_request`).
- You are charged only for a 2xx answer. Invalid input returns 400 and is not charged.
- Machine-readable list: https://mint-check.xakahiro.workers.dev/openapi.json

## Tools

### Mint Check ($0.02 per call)

Pre-mint check for NFT contracts on Base. Returns on-chain facts: who controls the contract (single key, renounced, or Safe multisig with threshold), upgradeable proxy, verified source, supply and max supply, and owner functions to change metadata, supply or price, pause, withdraw, or mint extra. Detects SeaDrop and thirdweb drops. Lists what could not be measured. Not an audit or financial advice.

Also returns holder concentration from an NFT indexer (`mint.holderConcentration`: holder count, top-1 and top-10 share, top holders marked owner/deployer) with flags `TOP_HOLDER_LARGE_SHARE` and `TOP10_HOLD_MAJORITY`.

- `GET https://mint-check.xakahiro.workers.dev/api/mint-check?address=0x9e7a06c281355f60570e47a12650c89fe1d36ff3` (or `POST` with the same fields as JSON)
- `address` (required): NFT contract address on Base (0x-prefixed, 40 hex characters).
- `tokenId` (optional): Optional. Token id as a decimal string. ERC-1155 keeps supply per token, so pass this to read supply for one token.

### x402 Seller Check ($0.01 per call)

Why is your x402 endpoint missing from the CDP Bazaar? One unpaid request finds out: is it listed, and do the listing's price, network and payTo match your live 402? It also checks the usual causes: no or incomplete Bazaar extension (input example, schema, output example), v2 terms in the body not the header, wrong resource URL, description over 500 chars, bad amount, EIP-712 name/version mismatch. Buyers: run it before paying an unknown seller. Never signs or pays.

Sellers: if your 402 and payments work but you cannot find your endpoint in the CDP Bazaar, run this on it. `bazaarListing` says whether it is listed and whether the listing's price, network and payTo match the live 402, with 30-day calls and payers. `checks` names the causes it can see: a missing Bazaar extension or a missing input example, schema or output example; v2 terms in the body instead of the PAYMENT-REQUIRED header; a resource.url on another host or path; a description the CDP facilitator rejects; or an EIP-712 mismatch that makes payments fail. CDP adds an endpoint only after its first payment settles through the CDP facilitator. Buyers: run it before paying a seller you have not used before; it shows the real price in USD and who receives the money (payTo: EOA, EIP-7702 or contract).

- `GET https://mint-check.xakahiro.workers.dev/api/x402-seller-check?url=https%3A%2F%2Fmint-check.xakahiro.workers.dev%2Fapi%2Fmint-check&method=GET` (or `POST` with the same fields as JSON)
- `url` (required): Absolute https URL of the paid endpoint to check (port 443).
- `method` (optional): Optional. GET (default) or POST. POST sends an empty JSON object.

### Tokenized Stock Check ($0.01 per call)

Check a tokenized US stock on Base before you trade or lend against it. Coinbase (B20) and Dinari tokens: is anything paused, can the issuer block or seize balances and who holds that key, can the logic be upgraded, dividend multiplier, Chainlink price and its age, and whether the US market is open (on-chain prices hold the last close). Lists what could not be measured. Not investment advice.

Also reads Coinbase's oracle registry: `CORPORATE_ACTION_PAUSE` means the price feed is frozen for a split or similar action.

- `GET https://mint-check.xakahiro.workers.dev/api/tokenized-stock-check?address=0xb20000000000000000000078ee7ce2fE4908108C` (or `POST` with the same fields as JSON)
- `address` (required): Tokenized stock contract on Base (0x-prefixed, 40 hex characters), e.g. NVDAc.

## Contact

gemini322795@gmail.com
