Funding
object Funding
Content copied to clipboard
Types
First Commit Tx
Link copied to clipboard
data class FirstCommitTx(localSpec: CommitmentSpec, localCommitTx: Transactions.TransactionWithInputInfo.CommitTx, remoteSpec: CommitmentSpec, remoteCommitTx: Transactions.TransactionWithInputInfo.CommitTx)
Content copied to clipboard
Functions
make First Commit Txs
Link copied to clipboard
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>
Content copied to clipboard
Creates both sides' first commitment transaction.
make Funding Input Info
Link copied to clipboard
fun makeFundingInputInfo(fundingTxId: ByteVector32, fundingTxOutputIndex: Int, fundingAmount: Satoshi, fundingPubkey1: PublicKey, fundingPubkey2: PublicKey): Transactions.InputInfo
Content copied to clipboard