market_subcontract
Delegate part of a parent contract to a subcontractor as a child contract tied to a parent milestone, funding each stage only after the parent milestone is released.
Instructions
Seller: hand part of a contract’s work to another party as a child contract. Same asset and rail, within the parent’s unreleased value; you are its buyer and fund each stage only after the parent milestone it serves is released to you. Fees apply to the child like any contract.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"parent": "<parent>",
"to": "<to>",
"title": "<title>",
"price": "<price>",
"serves": "<serves>"
},
"name": "market_subcontract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as | No | Practice market only: act as this party id. | |
| to | Yes | The subcontractor’s party id. | |
| demo | No | Use the practice market on this computer (nothing published, no real money). | |
| unit | No | Unit (default: the parent’s). | |
| price | Yes | Price per unit, in the parent’s asset. | |
| title | Yes | What the subcontractor delivers. | |
| parent | Yes | The contract you sell on. | |
| serves | Yes | The parent milestone index this work serves; the child stage is due with it. | |
| network | No | Which market (default testnet). Validate on testnet, then use mainnet (real XRP). | |
| quantity | No | Units (default 1). | |
| evaluator | No | A third party (never the subcontractor) who may accept the child’s milestones besides you. | |
| acceptance | No | Acceptance criteria for the delivered result (JSON or a file): what an evaluator checks. Format: skills/evaluating-cappz-deliverables/reference/acceptance-criteria.md |