HardPaymentsClosed
x402 Agent Buyer
An agent that pays for what it uses: it calls x402-paywalled APIs on Pharos, pays within a budget, and finishes the job.
Points
200 +50 with video
Build on
What you'll build
An agent that pays for what it uses. Given a task, it calls x402-paywalled APIs on Pharos, reads each price, decides whether the data is worth buying, pays within a budget, and finishes the job. This is the agent-to-API payment loop that the Agent Payment Plane is built for.
Requirements
- 01Calls at least 2 different x402 endpoints. They can be your own or another dev's.
- 02Enforces a spend budget and a per-call price cap, and refuses calls over either one.
- 03Logs every payment with the price, what it bought and the tx hash, plus a running total.
- 04Handles payment failures with retries that are safe: the same payment never counts twice.
- 05Includes a demo task where the agent completes the job, and one where it stops because it hit the budget.
Reviewers score against this list. Missing items can mean partial points.
Resources
x402 on Pharos: https://docs.pharos.xyz/developer-guide/x402
x402 on Atlantic Testnet: https://docs.pharos.xyz/developer-guide/x402/x402-atlantic-testnet
x402-pharos Skill: https://github.com/PharosNetwork/examples/tree/main/skills/x402-pharos
What to submit
- A proof link reviewers can open — a share link from ai.pharos.xyz, a tx hash on the explorer, or a deployed demo.
- A repo link if you wrote code.
- Optional: a video walking through the build for +50 points.