market_claim
Sign an off-ledger payment-channel claim for total units used in a metered deal, giving the seller a redeemable proof of usage.
Instructions
Buyer of a metered deal: sign a payment-channel claim for the units used so far (the total, not the increase) with your wallet key, off the ledger and free. Give the printed claim to the seller; they redeem it with cappz-market redeem.
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": {
"contract": "<contract>",
"units": "<units>"
},
"name": "market_claim"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as | No | Practice market only: act as this party id. | |
| demo | No | Use the practice market on this computer (nothing published, no real money). | |
| units | Yes | Total units used so far (up to the cap). | |
| network | No | Which market (default testnet). Validate on testnet, then use mainnet (real XRP). | |
| contract | Yes | Contract id. |