lnrpc: add batch channel open RPC types

This commit is contained in:
Oliver Gugger 2021-08-24 11:21:50 +02:00
parent d263a01a2d
commit 7c41d4b349
No known key found for this signature in database
GPG Key ID: 8E4256593F177720
2 changed files with 2979 additions and 2533 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1776,6 +1776,84 @@ message ReadyForPsbtFunding {
bytes psbt = 3;
}
message BatchOpenChannelRequest {
// The list of channels to open.
repeated BatchOpenChannel channels = 1;
// The target number of blocks that the funding transaction should be
// confirmed by.
int32 target_conf = 2;
// A manual fee rate set in sat/vByte that should be used when crafting the
// funding transaction.
int64 sat_per_vbyte = 3;
// The minimum number of confirmations each one of your outputs used for
// the funding transaction must satisfy.
int32 min_confs = 4;
// Whether unconfirmed outputs should be used as inputs for the funding
// transaction.
bool spend_unconfirmed = 5;
// An optional label for the batch transaction, limited to 500 characters.
string label = 6;
}
message BatchOpenChannel {
// The pubkey of the node to open a channel with. When using REST, this
// field must be encoded as base64.
bytes node_pubkey = 1;
// The number of satoshis the wallet should commit to the channel.
int64 local_funding_amount = 2;
// The number of satoshis to push to the remote side as part of the initial
// commitment state.
int64 push_sat = 3;
// Whether this channel should be private, not announced to the greater
// network.
bool private = 4;
// The minimum value in millisatoshi we will require for incoming HTLCs on
// the channel.
int64 min_htlc_msat = 5;
// The delay we require on the remote's commitment transaction. If this is
// not set, it will be scaled automatically with the channel size.
uint32 remote_csv_delay = 6;
/*
Close address is an optional address which specifies the address to which
funds should be paid out to upon cooperative close. This field may only be
set if the peer supports the option upfront feature bit (call listpeers
to check). The remote peer will only accept cooperative closes to this
address if it is set.
Note: If this value is set on channel creation, you will *not* be able to
cooperatively close out to a different address.
*/
string close_address = 7;
/*
An optional, unique identifier of 32 random bytes that will be used as the
pending channel ID to identify the channel while it is in the pre-pending
state.
*/
bytes pending_chan_id = 8;
/*
The explicit commitment type to use. Note this field will only be used if
the remote peer supports explicit channel negotiation.
*/
CommitmentType commitment_type = 9;
}
message BatchOpenChannelResponse {
repeated PendingUpdate pending_channels = 1;
}
message OpenChannelRequest {
// A manual fee rate set in sat/vbyte that should be used when crafting the
// funding transaction.