Close Lightning Channel
API-v2lightning::channels::close_channel
Closes a Lightning Network channel with a remote node.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| coin | string | ✓ | - | The ticker of the coin for the channel to close. |
| channel_id | string | ✓ | - | The channel ID to close. |
| force | boolean | ✗ | false | If true, the channel will be force-closed. |
| target_height | integer | ✗ | - | The target block height for closing the channel. |
| Parameter | Type | Description |
|---|---|---|
| status | string | Status message (e.g., Channel closed successfully). |
| id | int | Request identifier. |
lightning::channels::close_channel
POST
lightning::channels::close_channel{
"userpass": "RPC_UserP@SSW0RD",
"mmrpc": "2.0",
"method": "lightning::channels::close_channel",
"params": {
"coin": "tBTC-lightning",
"channel_id": "1234567890abcdef",
"force": true
},
"id": 1
}