2019-08-31 14:30:56 +02:00
|
|
|
lightning-fundchannel\_cancel -- Command for completing channel establishment
|
|
|
|
=============================================================================
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
|
|
|
|
|
|
|
**fundchannel\_cancel** *id*
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
|
2019-09-09 18:11:24 +02:00
|
|
|
`fundchannel_cancel` is a lower level RPC command. It allows channel opener
|
2019-08-29 09:54:19 +02:00
|
|
|
to cancel a channel before funding broadcast with a connected peer.
|
2019-08-10 01:54:18 +02:00
|
|
|
|
2019-08-29 09:54:19 +02:00
|
|
|
*id* is the node id of the remote peer with which to cancel.
|
|
|
|
|
|
|
|
Note that the funding transaction MUST NOT be broadcast before
|
|
|
|
`fundchannel_cancel`. Broadcasting transaction before `fundchannel_cancel`
|
|
|
|
WILL lead to unrecoverable loss of funds.
|
|
|
|
|
|
|
|
If `fundchannel_cancel` is called after `fundchannel_complete`, the remote
|
|
|
|
peer may disconnect when command succeeds. In this case, user need to connect
|
|
|
|
to remote peer again before opening channel.
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
RETURN VALUE
|
|
|
|
------------
|
|
|
|
|
doc/schemas: disableoffer, disconnect, feerates, fetchinvoice, fundchannel, fundchannel_cancel, fundchannel_complete, fundchannel_start, fundpsbt, getinfo, getlog, getroute.
We also add a test for getlog, since it was never called by the
testsuite.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-05-26 09:35:01 +02:00
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-START)
|
|
|
|
On success, an object is returned, containing:
|
|
|
|
- **cancelled** (string): A message indicating it was cancelled by RPC
|
2021-09-03 12:07:59 +02:00
|
|
|
|
doc/schemas: disableoffer, disconnect, feerates, fetchinvoice, fundchannel, fundchannel_cancel, fundchannel_complete, fundchannel_start, fundpsbt, getinfo, getlog, getroute.
We also add a test for getlog, since it was never called by the
testsuite.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-05-26 09:35:01 +02:00
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-END)
|
2019-08-10 01:54:18 +02:00
|
|
|
|
2020-01-05 16:40:17 +01:00
|
|
|
On error the returned object will contain `code` and `message` properties,
|
|
|
|
with `code` being one of the following:
|
|
|
|
|
|
|
|
- -32602: If the given parameters are wrong.
|
|
|
|
- 306: Unknown peer id.
|
2020-06-24 06:34:26 +02:00
|
|
|
- 307: No channel currently being funded that can be cancelled.
|
|
|
|
- 308: It is unsafe to cancel the channel: the funding transaction
|
|
|
|
has been broadcast, or there are HTLCs already in the channel, or
|
|
|
|
the peer was the initiator and not us.
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
AUTHOR
|
|
|
|
------
|
|
|
|
|
|
|
|
Lisa Neigut <<niftynei@gmail.com>> is mainly responsible.
|
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
|
|
|
|
2021-03-09 22:14:08 +01:00
|
|
|
lightning-connect(7), lightning-fundchannel(7), lightning-multifundchannel(7),
|
2019-08-10 01:54:18 +02:00
|
|
|
lightning-fundchannel\_start(7), lightning-fundchannel\_complete(7)
|
2021-03-09 22:14:08 +01:00
|
|
|
lightning-openchannel\_init(7), lightning-openchannel\_update(7),
|
|
|
|
lightning-openchannel\_signed(7), lightning-openchannel\_abort(7)
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
RESOURCES
|
|
|
|
---------
|
|
|
|
|
|
|
|
Main web site: <https://github.com/ElementsProject/lightning>
|
2020-08-25 03:33:16 +02:00
|
|
|
|
2022-07-13 17:45:39 +02:00
|
|
|
[comment]: # ( SHA256STAMP:a670eb1f4475ad33b3fc20994205adbf12fad8bb93e5e805e0b8a8ea1db15136)
|