const buyer_address = "1BuyerAddress"; const seller_address = "1SellerAddress"; const escrow_address = "1EscrowAddress"; const btc_amount = 1.0; const btc_fee = 0.0001; const lock_time = 100000; const refund_tx = [ [ buyer_address, btc_amount, [buyer_address], "checksig" ], [ seller_address, 0, [seller_address], "checksig" ], [[buyer_address], btc_fee, "checkmultisig"], lock_time ]; const escrow_tx = [ [ seller_address, btc_amount, [seller_address], "checksig" ], [ escrow_address, 0, [escrow_address], "checksig" ], [], lock_time ]; const refund_sig = [ refund_tx, 0, [ 2, buyer_address, seller_address, escrow_address, "checkmultisig" ], "multisign" ]; const escrow_sig = [ escrow_tx, 0, [ 2, buyer_address, seller_address, escrow_address, "checkmultisig" ], "multisign" ]; const finalized_refund_tx = [ refund_tx, 0, refund_sig, "apply_multisignatures" ]; const finalized_escrow_tx = [ escrow_tx, 0, escrow_sig, "apply_multisignatures" ]; const refund_hex = [ finalized_refund_tx, "tx_to_hex" ]; const escrow_hex = [ finalized_escrow_tx, "tx_to_hex" ]; console.log("Refund Transaction Hex:"); console.log(refund_hex); console.log("Escrow Transaction Hex:"); console.log(escrow_hex);
Inscription number 18,957,228
Genesis block 799,985
File type text
File size 1.35 KB
Creation date Jul 24,2023 1:17 am