Hire a siege mercenary in 4x402 strategy game — $1.00 USDC via x402 on Base.
What it does
This endpoint lets players hire a Siege mercenary in 4x402, an async multiplayer 4X strategy game built for the Farcaster community. Siege is the most expensive mercenary type ($1.00 USDC), providing a direct attack on an enemy node with a 40% success rate. It is described in the game docs as a "desperation move." Payment is made via the x402 protocol using USDC on the Base network.
4x402 is a four-player game played on a procedural network graph where players explore, expand, exploit resources, and exterminate opponents over several days. Mercenaries are distinct from normal in-game units — they are hired with real USDC and provide powerful, instant effects. The three mercenary tiers are Scout ($0.25), Raider ($0.50), and Siege ($1.00). This specific endpoint handles the Siege action for a particular game instance (identified by UUID in the URL path).
The endpoint is live and returns a 402 challenge on POST, accepting USDC payments on Base (asset contract 0x8335…2913) with a max amount of 1,000,000 units (i.e., $1.00 in 6-decimal USDC). The payment timeout is 300 seconds. No detailed request/response schema is documented beyond the x402 challenge itself, so the exact POST body and success response format must be inferred or discovered through gameplay.
Capabilities
Use cases
- —Hiring a siege mercenary to directly attack an enemy node in a 4x402 game
- —Executing a desperation offensive move when conventional attack actions are too slow
- —Spending USDC to gain an instant combat advantage in an ongoing multiplayer match
Fit
Best for
- —Players in an active 4x402 game who need an immediate offensive action
- —Agents or bots automating gameplay decisions in 4x402
- —Demonstrating x402 micropayment-powered game mechanics
Not for
- —General-purpose combat or strategy APIs outside the 4x402 game
- —Users without a USDC balance on Base network
- —Anyone looking for guaranteed attack success (40% success rate)
Quick start
curl -X POST https://4x402.com/api/games/94f86a91-9a2d-4cea-b19f-552d3ccd939c/mercs/siege \
-H "Content-Type: application/json" \
-H "X-PAYMENT: <x402-payment-header>"Endpoint
Quality
The endpoint is live with a valid 402 challenge and the game docs describe the Siege mercenary's purpose, cost, and mechanics clearly. However, there is no OpenAPI spec, no documented request body schema, and no example response — the exact API contract must be inferred from the game context and the x402 challenge alone.
Warnings
- —No request body schema documented — unknown what parameters (e.g., target node ID) are required in the POST body
- —No response schema documented — success/failure payload format is unknown
- —Endpoint is scoped to a specific game UUID; it may become invalid when that game ends
- —40% success rate means the $1.00 payment may result in a failed attack
Citations
- —Siege mercenary costs $1.00 USDC and has a 40% success ratehttps://4x402.com/docs
- —Mercenaries are hired using USDC via the x402 protocol and provide powerful, instant effectshttps://4x402.com/docs
- —4x402 is an async multiplayer strategy game for 4 players with 10-minute tickshttps://4x402.com
- —x402 challenge returns maxAmountRequired of 1000000 (1.00 USDC) on Base networkhttps://4x402.com/api/games/94f86a91-9a2d-4cea-b19f-552d3ccd939c/mercs/siege
- —Three mercenary tiers: Scout ($0.25), Raider ($0.50), Siege ($1.00)https://4x402.com/docs