radiant_update_channel
Transfer photons from payer to payee by updating a micropayment channel state, adjusting balances and nonce to settle the payment.
Instructions
Update a micropayment channel state: transfer photons from payer (agentA) to payee (agentB).
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": {
"channel_id": "<channel_id>",
"agent_a": "<agent_a>",
"agent_b": "<agent_b>",
"capacity": "<capacity>",
"balance_a": "<balance_a>",
"balance_b": "<balance_b>",
"nonce": "<nonce>",
"timeout_blocks": "<timeout_blocks>",
"payment_amount": "<payment_amount>"
},
"name": "radiant_update_channel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nonce | Yes | Current state nonce | |
| agent_a | Yes | Payer's public key hex | |
| agent_b | Yes | Payee's public key hex | |
| capacity | Yes | Total channel capacity in photons | |
| balance_a | Yes | Current agentA balance in photons | |
| balance_b | Yes | Current agentB balance in photons | |
| channel_id | Yes | Channel ID | |
| payment_amount | Yes | Amount to transfer from agentA to agentB (photons) | |
| timeout_blocks | Yes | Timeout in blocks |