confirm_purchase
CDK Bot: receive the product key after paying. Two ways to pay: (1) one-shot — pass x_payment, a signed EIP-3009 "exact" X-PAYMENT header (from accepts[] in get_price_quote); the facilitator settles it gaslessly, no tx_hash needed. (2) two-step — send USDC yourself, then pass tx_hash + quote_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Payment chain (default: "base") | |
| game_id | Yes | Game ID being purchased | |
| tx_hash | No | Two-step flow: the USDC payment transaction hash on Base. Provide this OR x_payment. | |
| quote_id | No | Required WITH tx_hash — locks the quoted price and prevents front-running. Not needed with x_payment. | |
| x_payment | No | One-shot flow: a base64-encoded EIP-3009 "exact" X-PAYMENT payload signed by the buyer wallet for accepts[0] from get_price_quote. Settles gaslessly via the facilitator — no tx_hash/quote_id needed. |