Settle composite sale
swarm.settleVerify and settle a buyer's x402 payment for a listed composite product after payment, then record seller revenue from the product ID and payment signature.
Instructions
Verify and settle a buyer's x402 payment for a listed composite product and record revenue. Call with product_id plus PAYMENT-SIGNATURE after the buyer pays.
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": {
"product_id": "<product_id>",
"payment_signature": "<payment_signature>",
"payment_required": "<payment_required>"
},
"name": "swarm.settle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | No | Seller agent identity recording the sale. | |
| product_id | Yes | Listed composite product id. Example: the hex id from swarm.research. | |
| payment_required | Yes | PAYMENT-REQUIRED terms for this product. | |
| payment_signature | Yes | PAYMENT-SIGNATURE from the buyer. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |