Funding

object Funding

Types

FirstCommitTx
Link copied to clipboard
common
data class FirstCommitTx(localSpec: CommitmentSpec, localCommitTx: Transactions.TransactionWithInputInfo.CommitTx, remoteSpec: CommitmentSpec, remoteCommitTx: Transactions.TransactionWithInputInfo.CommitTx)

Functions

makeFirstCommitTxs
Link copied to clipboard
common
fun makeFirstCommitTxs(keyManager: KeyManager, temporaryChannelId: ByteVector32, localParams: LocalParams, remoteParams: RemoteParams, fundingAmount: Satoshi, pushMsat: MilliSatoshi, initialFeerate: FeeratePerKw, fundingTxHash: ByteVector32, fundingTxOutputIndex: Int, remoteFirstPerCommitmentPoint: PublicKey): Either<ChannelException, Helpers.Funding.FirstCommitTx>

Creates both sides' first commitment transaction.

makeFundingInputInfo
Link copied to clipboard
common
fun makeFundingInputInfo(fundingTxId: ByteVector32, fundingTxOutputIndex: Int, fundingAmount: Satoshi, fundingPubkey1: PublicKey, fundingPubkey2: PublicKey): Transactions.InputInfo