2019-12-26 11:19:09 +01:00
|
|
|
.TH "LIGHTNING-WAITBLOCKHEIGHT" "7" "" "" "lightning-waitblockheight"
|
|
|
|
.SH NAME
|
2020-06-25 07:10:41 +02:00
|
|
|
lightning-waitblockheight - Command for waiting for blocks on the blockchain
|
2019-12-26 11:19:09 +01:00
|
|
|
.SH SYNOPSIS
|
|
|
|
|
|
|
|
\fBwaitblockheight\fR \fIblockheight\fR [\fItimeout\fR]
|
|
|
|
|
|
|
|
.SH DESCRIPTION
|
|
|
|
|
|
|
|
The \fBwaitblockheight\fR RPC command waits until the blockchain
|
2020-06-25 07:10:41 +02:00
|
|
|
has reached the specified \fIblockheight\fR\.
|
|
|
|
It will only wait up to \fItimeout\fR seconds (default 60)\.
|
|
|
|
|
2019-12-26 11:19:09 +01:00
|
|
|
|
|
|
|
If the \fIblockheight\fR is a present or past block height, then this
|
2020-06-25 07:10:41 +02:00
|
|
|
command returns immediately\.
|
2019-12-26 11:19:09 +01:00
|
|
|
|
|
|
|
.SH RETURN VALUE
|
|
|
|
|
2021-06-16 03:10:17 +02:00
|
|
|
On success, an object is returned, containing:
|
2020-06-25 07:10:41 +02:00
|
|
|
|
2021-06-16 03:10:17 +02:00
|
|
|
.RS
|
|
|
|
.IP \[bu]
|
|
|
|
\fBblockheight\fR (u32): The current block height (>= \fIblockheight\fR parameter)
|
|
|
|
|
|
|
|
.RE
|
2019-12-26 11:19:09 +01:00
|
|
|
|
|
|
|
If \fItimeout\fR seconds is reached without the specified blockheight
|
2021-01-06 16:22:34 +01:00
|
|
|
being reached, this command will fail with a code of \fB2000\fR\.
|
2019-12-26 11:19:09 +01:00
|
|
|
|
|
|
|
.SH AUTHOR
|
|
|
|
|
2020-06-25 07:10:41 +02:00
|
|
|
ZmnSCPxj \fI<ZmnSCPxj@protonmail.com\fR> is mainly responsible\.
|
2019-12-26 11:19:09 +01:00
|
|
|
|
|
|
|
.SH RESOURCES
|
|
|
|
|
|
|
|
Main web site: \fIhttps://github.com/ElementsProject/lightning\fR
|
|
|
|
|
2021-06-16 03:10:17 +02:00
|
|
|
\" SHA256STAMP:38dc35b2a28f0ee342af0fdaba6b4f1f27fb1df973426804d30da0572eb3913d
|