---
name: grubhub.x402.fi
description: grubhub.x402.fi is a merchant host that sells Grubhub gift cards in fixed denominations ($10 and $25) via x402-compliant exact USDC payments on Solana mainnet. Each skill handles one denomination and returns a gift card upon successful payment settlement within a defined timeout window.
host: grubhub.x402.fi
---

# grubhub.x402.fi

This host serves agents and users who need to programmatically purchase Grubhub gift cards using Solana USDC. It offers two fixed-denomination options ($10 and $25) through the x402 exact-payment scheme, with settlement windows of up to 5 minutes. It does not support variable amounts, other stablecoins, or non-Solana chains.

## When to use this host

Use this host when an agent needs to purchase a Grubhub gift card in exactly $10 or $25 denominations and the payment source is Solana USDC. Do not use this host for other gift card denominations, for payments in ETH, SOL, or non-USDC assets, or for payments originating on Ethereum or other EVM chains. This host is not suitable for recurring food orders or subscription-style purchases. If the user needs a different food delivery service or a different gift card brand, this host has no applicable skills.

## Capabilities

### Grubhub Gift Card Purchase

Enables purchase of Grubhub gift cards in fixed $10 or $25 denominations by sending exact USDC amounts on Solana mainnet via the x402 payment scheme, returning a redeemable gift card on success.

- **`buy-grubhub-10-gift-card`** — Purchases a $10 Grubhub gift card by sending exactly 10 USDC (10000000 atomic units) on Solana mainnet via the x402 exact-payment scheme.
- **`purchase-grubhub-25-gift-card`** — Purchases a $25 Grubhub gift card by sending exactly 25 USDC on Solana mainnet to the designated payee address, with a 5-minute settlement window.

## Skill reference

### `purchase-grubhub-25-gift-card`

**Grubhub $25 Gift Card (Solana USDC)** — Purchases a $25 Grubhub gift card by sending exactly 25 USDC on Solana mainnet to the designated payee address, with a 5-minute settlement window.

*Use when:* Use when a user wants to buy a $25 Grubhub gift card and is paying with Solana USDC; the agent must send an x402-compliant exact payment of 25 USDC (25000000 atomic units) before the 300-second timeout.

*Not for:* Do not use for Grubhub gift cards of other denominations, for non-USDC payment methods, or for cross-chain payments from Ethereum or other networks.

**Inputs:**

- `payTo` (string, required) — Solana wallet address that receives the USDC payment. Must match the paywall-specified address.
- `amount` (string, required) — Exact payment amount in USDC atomic units (6 decimals). Must be exactly 25000000 for this product.
- `asset` (string, required) — SPL token mint address for USDC on Solana mainnet.
- `network` (string, required) — Solana network identifier for mainnet.
- `scheme` (string, required) — Payment scheme; must be 'exact' indicating no partial payments are accepted.
- `maxTimeoutSeconds` (integer, required) — Maximum seconds allowed for payment settlement. Fixed at 300 (5 minutes) for this endpoint.

**Returns:** Returns gift card delivery details (code or redemption link) for a $25 Grubhub gift card after confirmed USDC payment on Solana.

**Example:** `POST https://grubhub.x402.fi/store/buy/grubhub-25
{"payTo":"Ak3Zw57WFjq94FGuX4sWNetqiCpbWQgmLoNmfRzEsadx","amount":"25000000","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","maxTimeoutSeconds":300}`

---

### `buy-grubhub-10-gift-card`

**Buy $10 Grubhub Gift Card** — Purchases a $10 Grubhub gift card by sending exactly 10 USDC (10000000 atomic units) on Solana mainnet via the x402 exact-payment scheme.

*Use when:* Use when an agent needs to programmatically purchase a $10 Grubhub gift card using Solana USDC, settling payment to a designated account with optional fee-payer delegation.

*Not for:* Do not use for Grubhub gift cards of other denominations, non-USDC payment, or non-Solana chains. Not suitable for recurring or subscription food orders.

**Inputs:**

- `asset` (string, required) — SPL token mint address for the payment asset. Must be USDC on Solana mainnet.
- `amount` (string, required) — Exact payment amount in atomic USDC units (6 decimals). Must be 10000000 for this endpoint.
- `payTo` (string, required) — Solana wallet address that receives the USDC payment.
- `scheme` (string, required) — Payment scheme. Must be 'exact' for this endpoint.
- `network` (string, required) — Solana network identifier.
- `feePayer` (string) — Optional Solana address to delegate transaction fee payment.
- `xSettlementAccountSupported` (boolean) — Whether a custom settlement account is supported for this transaction.

**Returns:** Returns gift card fulfillment details (redemption code or delivery info) after the exact 10 USDC payment on Solana is confirmed.

**Example:** `{"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"10000000","payTo":"Ak3Zw57WFjq94FGuX4sWNetqiCpbWQgmLoNmfRzEsadx","scheme":"exact","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","feePayer":"4x4ZhcqiT1FnirM8Ne97iVupkN4NcQgc2YYbE2jDZbZn"}`

---
