Nimiq
consensus

Create new htlc transaction

Returns a serialized transaction creating a new HTLC contract.

createNewHtlcTransactionrpc method

Parameters

walletstringrequired
htlcSenderstringrequired
htlcRecipientstringrequired
hashRootstringrequired
hashCountnumberrequired
timeoutnumberrequired
valuenumberrequired
feenumberrequired
validityStartHeightstring | numberrequired

Response fields

Stringstring

Interactive playground

Try the method against a public RPC endpoint.

Copyright © 2026