> ## Documentation Index
> Fetch the complete documentation index at: https://docs.b3os.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Clanker Wait Auction

Wait for a Clanker token's MEV auction to end before trading. Polls on-chain auction state (round number, mevModuleEnabled) every 2s and returns when trading opens. Ideal for: token sniping workflows, automated buying after launch, Clanker trading bots.

![Clanker Wait Auction logo](https://cdn.b3.fun/b3os-icons/clanker.svg)
Catalog action Blockchain Data

Wait for a Clanker token's MEV auction to end before trading. Polls on-chain auction state (round number, mevModuleEnabled) every 2s and returns when trading opens. Ideal for: token sniping workflows, automated buying after launch, Clanker trading bots.


## At a Glance

| Field | Value |
| --- | --- |
| Action ID | `clanker-wait-auction` |
| Category | Blockchain Data |
| Connector | Not required |
| Requires gas | No |
| Funds movement | None declared |
| Tags | `clanker`, `base`, `read` |

## Payload Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `poolId` | `string` | Yes | The Uniswap V4 pool ID \(bytes32\) from the TokenCreated event |
| `chainId` | `number` | Yes | Chain ID where the Clanker token was deployed \(default: 8453 for Base\) |
| `pollIntervalMs` | `number` | No | Polling interval in milliseconds \(default: 2000, min: 1000, max: 10000\) |
| `timeoutMs` | `number` | No | Maximum time to wait in milliseconds \(default: 150000 = 2.5 minutes, max: 300000 = 5 minutes\) |

## Result Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `ready` | `boolean` | Yes | Whether trading is now open \(true\) or timed out \(false\) |
| `waitedMs` | `number` | Yes | Total time waited in milliseconds |
| `auctionRound` | `number` | No | The auction round when trading opened \(&gt;5 means auction ended naturally\) |
| `mevModuleEnabled` | `boolean` | No | Whether MEV module is still enabled \(false means trading is fully open\) |
| `pollCount` | `number` | No | Number of polling iterations performed |
| `exitReason` | `string` | No | Why the action exited: 'auction_ended', 'mev_disabled', 'timeout' |

## Examples

**Workflow node**

```json
{
  "type": "clanker-wait-auction",
  "payload": {
    "poolId": "example-poolId",
    "chainId": 8453
  },
  "children": []
}
```
  **Test with API**

```bash
curl -X POST "https://api.b3os.org/v1/actions/clanker-wait-auction/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "poolId": "example-poolId",
    "chainId": 8453
  }
}'
```

**Use expressions for dynamic values**

Payload fields can use workflow expressions such as `{{$trigger.body.amount}}`, `{{$nodes.fetch.result.price}}`, and `{{$props.asset}}` when the value should come from a trigger, prior node, or reusable workflow prop.