market_redeem
Redeems a buyer’s latest PaymentChannelClaim, pays the channel-increase fee from the seller account, and records the payment; optionally closes the channel to return unused funds.
Instructions
Seller of a metered deal: redeem the buyer’s latest claim on the ledger (PaymentChannelClaim), pay the fee on the increase from your account (a channel pays only you), and record both. --close also closes the channel, returning the unused rest to the buyer. Moves money: on mainnet pass yes=true only after the person you act for agrees.
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>",
"claim": "<claim>"
},
"name": "market_redeem"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as | No | Practice market only: act as this party id. | |
| yes | No | Confirms a mainnet money movement. | |
| demo | No | Use the practice market on this computer (nothing published, no real money). | |
| claim | Yes | The claim JSON (or a file of it) the buyer printed with cappz-market claim. | |
| close | No | Close the channel in the same transaction. | |
| network | No | Which market (default testnet). Validate on testnet, then use mainnet (real XRP). | |
| contract | Yes | Contract id. |