wdk_open_channel
Open a Lightning channel to a peer, specifying capacity in satoshis and optionally allocating an RGB asset for off-chain transfers.
Instructions
Open a new Lightning channel to a peer. Optionally allocate an RGB asset to the channel for off-chain asset transfers.
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": {
"peer_pubkey_and_addr": "<peer_pubkey_and_addr>",
"capacity_sat": "<capacity_sat>"
},
"name": "wdk_open_channel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset_id | No | RGB asset ID to allocate in this channel | |
| is_public | No | Whether to announce the channel publicly (default: false) | |
| push_msat | No | Millisatoshis to push to the remote side on open (default: 0) | |
| asset_amount | No | Amount of RGB asset to allocate | |
| capacity_sat | Yes | Channel capacity in satoshis | |
| peer_pubkey_and_addr | Yes | Peer connection string: '<pubkey>@<host>:<port>' |