radiant_open_channel
Create the initial state for a micropayment channel by locking photons, setting a timeout, and enabling trustless off-chain payments between two parties.
Instructions
Create initial state for a micropayment channel between two agents (MicropaymentChannel contract pattern).
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>"
},
"name": "radiant_open_channel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_a | Yes | Payer's public key hex (compressed, 66 chars) | |
| agent_b | Yes | Payee's public key hex (compressed, 66 chars) | |
| capacity | Yes | Total locked amount in photons | |
| channel_id | Yes | Channel ID (typically the funding txid) | |
| timeout_blocks | No | Timeout in blocks before payer can reclaim (default: 1008 ≈ 3.5 days) |