# Find out what a transaction did

> What did this transaction do, what did it cost, and who was on the other side?

Each call is paid per use in USDC over x402. No API key and no account: call it, get a 402 with the challenge in the `PAYMENT-REQUIRED` header, pay it and repeat the call.

**Every answer in this chain carries a `next` array with the following calls already built** — route, method, the parameters filled in from what was just found, the price and a full url you can fetch as it is. You do not have to work out the next step; follow `next`.

## The calls, starting at `GET /v1/evm/tx`

The numbering is the usual path, not a fixed order: what you actually get offered depends on what each answer finds. A call is only suggested when the data to make it is there, so a suggestion never sends you into a dead end.

1. **`GET /v1/evm/tx`** — $0.005 per call. What was asked: sender, destination, value, nonce, block and status.
2. **`GET /v1/evm/receipt`** — $0.005 per call. What happened: fee actually paid, gas used, how many logs it emitted and any contract it deployed.
3. **`GET /v1/evm/is-contract`** — $0.005 per call. What the destination actually is: a contract, and how big its code is, or a plain wallet.
4. **`GET /v1/evm/token-info`** — $0.005 per call. If the destination was a contract: name, symbol, decimals and total supply, read straight from it.

## Worked example

```
GET https://flat-rate-llm.kikoribera03.workers.dev/v1/evm/tx?hash=0x17f99c8d27a22958999b883d27e8a74b23bad5579832b269faf20ab884884ff3&chain=base
```

The answer ends with something like:

```json
{
  "next": [
    {
      "rel": "receipt",
      "why": "...",
      "method": "GET",
      "route": "/v1/evm/receipt",
      "tool": "evm_receipt",
      "params": {
        "hash": "0x17f99c8d...84ff3",
        "chain": "eip155:8453"
      },
      "url": "https://flat-rate-llm.kikoribera03.workers.dev/v1/evm/receipt?hash=0x17f99c8d...84ff3&chain=eip155%3A8453",
      "price": "$0.005"
    }
  ]
}
```

Fetch that `url`, pay its 402, and the answer will carry its own `next`. Follow it until `next` comes back empty.

## Where this chain leads out

- /v1/evm/token-safety — any contract this transaction touched can be run through the token chain.

## The same thing over MCP

Every route here is also an MCP tool at `POST https://flat-rate-llm.kikoribera03.workers.dev/mcp` — the `tool` field of each `next` entry is its name, and `params` goes straight into `arguments`. `tools/list` and the `catalog` tool are free.
