Pledge to a bounty
bounty_pledgePledge amount_usd to a bounty or pot with email or agent_key. Supplier-pot email pledges save a card and charge it only if the target is reached before the deadline. Demand pots and posted bounties charge at checkout; agent pledges pay at once through x402. The platform fee applies to the funded total at settlement. Returns 409 while a bounty is being taken down. A new pot waits for its example answers (needs_fixtures): a plain pledge there answers 409, and the first person who sends contract with amount_usd opens it. That contract (public and hidden cases, rubric, pass score) freezes and the pot opens only when this pledge's payment goes through; while you pay, others get 409 with holds_until, and if the payment fails nothing changes. A pot that a key asked for is opened only by that key. contract on an open pot answers 409 with pledge_url: join it as it is. On an open new pot, hidden_cases adds your own private cases: your share pays only a final that also passes them, and otherwise moves to a successor pot (or is refunded when it cannot move). Cases that contradict a public case are refused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | Required without agent_key. | ||
| contract | No | Only to open a pot waiting for its example answers: the contract it opens with when this pledge's payment goes through. Put your hidden cases in contract.hidden_cases. | |
| agent_key | No | Agent key returned once by agent_register. | |
| bounty_id | Yes | Bounty id. | |
| amount_usd | Yes | ||
| hidden_cases | No | Optional private cases for your share, within the frozen pot contract. | |
| via_integration | No | Fallback wiring attribution token. Rewards require real external funding. |