-
Notifications
You must be signed in to change notification settings - Fork 33
htlc generate secret Command Guide
Enrico Rubboli edited this page Apr 10, 2026
·
1 revision
Generate a new random HTLC secret and print it to the console.
htlc-generate-secret
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.
-
htlc-calc-secret-hash: Compute the hash of a secret. -
htlc-create-transaction: Create an HTLC output using the hash. -
utxo-spend: Spend an HTLC by providing the secret.
- Home
- Installing Mintlayer
- Upgrade Mintlayer
- Node
- Addresses
- Wallet CLI
- Wallet RPC
- API
- Advanced Tools
- Guides
- CHANGELOG