# Doormat Capital signals API

> Pay-per-call market-data endpoints settled in USDC on Base (x402). No account, no API key -- send USDC to the payment address in the 402 challenge, then retry with header `X-PAYMENT-TX: <tx hash>`.

## Endpoints

- [GET /funding](https://signals.sebastiaan-ba3.workers.dev/funding): Doormat Capital Lighter perp snapshot: top markets by 24h volume, funding rate per market, cross-exchange funding spread vs Lighter. 0.01 USDC per call.
- [GET /wallet-scan?address=0x...](https://signals.sebastiaan-ba3.workers.dev/wallet-scan): returns every token balance found across 5 chains (Base, Ethereum, Arbitrum, zkSync Era, Polygon) for any address in one call (also flags obviously scam-named tokens it finds along the way). 0.05 USDC per call.

## Paying as an agent

- [pay.py](https://signals.sebastiaan-ba3.workers.dev/pay.py): a ready-to-run Python client (one dependency, `pip install eth-account`) that reads this worker's own 402 challenge, pays it on Base, and retries the call -- for agents that can sign a transaction but don't want to hand-write the x402 flow. `PRIVATE_KEY=0x... python3 pay.py https://signals.sebastiaan-ba3.workers.dev/funding`.
- [pay.mjs](https://signals.sebastiaan-ba3.workers.dev/pay.mjs): the same client for Node/JS agents (one dependency, `npm install viem`). `PRIVATE_KEY=0x... node pay.mjs https://signals.sebastiaan-ba3.workers.dev/funding`.

## Machine-readable

- [OpenAPI](https://signals.sebastiaan-ba3.workers.dev/openapi.json): full schema, parameters, x402 payment requirements.
- [ARD manifest](https://signals.sebastiaan-ba3.workers.dev/.well-known/ard.json): Agentic Resource Discovery entries.
- [MCP server card](https://signals.sebastiaan-ba3.workers.dev/.well-known/mcp/server-card.json): Model Context Protocol tool description.
- [MCP endpoint](https://signals.sebastiaan-ba3.workers.dev/mcp): JSON-RPC, call tools directly.

## About

Doormat Capital. Contact: fleur.doormatcapital@gmail.com. Payment address (USDC on Base): 0x202B73254C28fA012BD11ff50425D94534b95594.
