Hire a siege mercenary in 4x402 strategy game — $1.00 USDC via x402 on Base.
What it does
This endpoint lets agents or players hire a Siege mercenary in 4x402, an async multiplayer 4X strategy game built for the Farcaster community. The Siege mercenary costs $1.00 USDC and performs a direct attack on an enemy node with a 40% success rate. It is described in the game docs as a "desperation move" — powerful but unreliable.
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 via the x402 protocol and provide powerful, instant effects. The Siege mercenary is the most expensive of the three mercenary types (Scout at $0.25, Raider at $0.50, Siege at $1.00).
The endpoint accepts POST requests and is gated by an x402 payment challenge on the Base network. Payment is made in USDC (contract 0x8335…2913) with a max amount of 1,000,000 units (i.e., $1.00 USDC with 6 decimals). The game ID in the URL path identifies a specific match instance. No OpenAPI schema or detailed request/response documentation is published beyond the x402 challenge and the game's docs page.
Capabilities
Use cases
- —Hire a siege mercenary to directly attack an enemy node in a 4x402 match
- —Automate aggressive strategies by programmatically purchasing siege attacks
- —Build a bot or agent that manages mercenary spending in 4x402 games
Fit
Best for
- —Players or agents in active 4x402 matches needing a direct attack option
- —Automated game-playing agents that interact with x402-gated game endpoints
- —Developers experimenting with x402 micropayment-powered game mechanics
Not for
- —General-purpose combat or strategy APIs outside the 4x402 game
- —Users looking for free or non-payment-gated game actions
- —Non-Base-network USDC payments
Quick start
curl -X POST https://4x402.com/api/games/5fab9ce6-249b-418a-803d-687b5ac36b6b/mercs/siege \
-H 'Content-Type: application/json' \
-H 'X-PAYMENT: <x402_payment_header>'Endpoint
Quality
The endpoint is live and returns a valid x402 402 challenge. Game docs describe the Siege mercenary's cost and effect clearly. However, there is no OpenAPI spec, no documented request body schema, and no example response, making integration details largely unknown.
Warnings
- —No OpenAPI or request/response schema published — request body format is unknown
- —Game ID in URL is match-specific; endpoint only works for active game instances
- —No detailed API documentation page exists (4x402.com/api returns 404)
- —40% success rate means the $1.00 payment may not yield a successful attack
Citations
- —Siege mercenary costs $1.00 USDC and has a 40% success rate direct attackhttps://4x402.com/docs
- —Mercenaries are hired using USDC via the x402 protocol and provide powerful, instant effectshttps://4x402.com/docs
- —x402 challenge requires payment on Base network in USDC with maxAmountRequired 1000000https://4x402.com/api/games/5fab9ce6-249b-418a-803d-687b5ac36b6b/mercs/siege
- —4x402 is an async multiplayer strategy game for four players built for the Farcaster communityhttps://4x402.com/docs
- —Three mercenary types: Scout ($0.25), Raider ($0.50), Siege ($1.00)https://4x402.com/docs