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).
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 |