Skip to content

htlc generate secret Command Guide

Enrico Rubboli edited this page Apr 10, 2026 · 1 revision

htlc-generate-secret

Generate a new random HTLC secret and print it to the console.

Usage

htlc-generate-secret

Notes

The secret is printed in hex. Store it securely — it is needed to spend the HTLC on the recipient side. Pass it to htlc-calc-secret-hash to obtain the hash required when creating the HTLC.

Related

Clone this wiki locally