Skip to main content

create_htlc

Function create_htlc 

Source
pub(crate) async fn create_htlc(
    funder: &Client,
    claim_pk: &str,
    expiration_delta: u64,
    lock_flag: &str,
    lock_value: &str,
) -> Result<(String, String)>
Expand description

Fund an HTLC of one thousand sats locked to claim_pk, wait for the funding transaction to be accepted and return the funding txid and the contract JSON as the claimer receives them out of band.