Skip to content

Add argument to OpenChannel rpc to input UTXOs #6955

@saubyk

Description

@saubyk

To simplify app development for coin selection on channel opens an additional argument should be added to the OpenChannel rpc. This argument should take an array of UTXOs which the application (user) passes. The processing logic should also include fee estimation, which enables complete UTXO consumption with no change output being generated.
Two scenarios to explain the requirement.

Scenario 1: User selects coins to use and specifies the amount to open the channel with. This can result in a change output being generated depending upon the amount in coins and fee rate chosen (essentially same as current functionality but with selected UTXOs)
The OpenChannel rpc will be called with:

  • utxo argument
  • amount
  • fee rate (default or chosen by the user)

Scenario 2: User selects coins to use and indicates to use them whole. This should result in no change output.
The OpenChannel rpc will be called with:

  • utxo argument
  • fundmax flag as true
  • fee rate (default or chosen by the user)

The scope of change includes:

fundmax flag is introduced with the below pr:
#6903
Related issue:
#6949

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions