---
name: coinflip402.vercel.app
description: coinflip402.vercel.app exposes a single API endpoint that returns a random coin flip result (heads or tails) along with a timestamp and a human-readable message. Access is gated by a USDC micropayment on Base via the x402 protocol.
host: coinflip402.vercel.app
---

# coinflip402.vercel.app

This host is a minimal, single-purpose randomness service for agents or users that need a simple binary outcome. It serves use cases like tie-breaking, random selection between two options, or simulating a 50/50 chance event. It is not a general-purpose randomness oracle and does not provide cryptographic guarantees.

## When to use this host

Use this host when an agent needs a simple, non-critical random binary outcome — for example, resolving a tie between two options or simulating a coin flip in a game or decision flow. Do not use it for cryptographically secure or verifiable randomness required by smart contracts or high-stakes on-chain logic; use a VRF service (e.g., Chainlink VRF) instead. Do not use it for outcomes with more than two possibilities or for weighted probability distributions — those require a different randomness service.

## Capabilities

### Binary Randomness

Provides a single coin flip outcome (heads or tails) with a timestamp and message, suitable for lightweight random binary decisions.

- **`fetch-coinflip-result`** — Returns a random coin flip outcome (heads or tails) with a timestamp and a human-readable message, paid via USDC on Base.

## Skill reference

### `fetch-coinflip-result`

**CoinFlip API** — Returns a random coin flip outcome (heads or tails) with a timestamp and a human-readable message, paid via USDC on Base.

*Use when:* Use when an agent or user needs a random binary outcome decided by a coin flip, such as resolving a tie, making a random choice, or simulating a 50/50 chance event.

*Not for:* Do not use for cryptographically secure randomness in smart contracts or high-stakes on-chain decisions; use a verifiable random function (VRF) service instead.

**Returns:** Returns a JSON object with result ('heads' or 'tails'), an ISO 8601 timestamp, and a human-readable message confirming the flip outcome.

**Example:** `GET https://coinflip402.vercel.app/api/coinflip`

---
