Skip to content

HTLC Refund

HTLC transactions are not currently active on Solar's Mainnet.

TypeGroup Type
1 10

A Hashed Time-Lock Contract (HTLC) is a set of transaction types that permits a designated party (the "sender/seller") to LOCK funds by disclosing the preimage (secret) of a hash. It also permits a second party (the "recipient/buyer") to CLAIM the funds, or after a timeout is reached enter a REFUND situation.

The purpose of this transaction is for the sender to retrieve their locked funds, in the case of the recipient not claiming them using a CLAIM transactions.

References
API Endpoints Link
AJV Schema Base | HTLC Refund

JSON

{
    "version": 3,
    "network": 63,
    "typeGroup": 1,
    "type": 10,
    "nonce": "11",
    "senderPublicKey": "034151a3ec46b5670a682b0a63394f863587d1bc97483b1b6c70eb58e7f0aed192",
    "fee": "0",
    "amount": "0",
    "asset": {
        "refund": {
            "lockTransactionId": "3aade2b98391ba7230252530cdd5124183a9f4e582660666ae873da48173ea5f"
        }
    }
}

Serialised

ff033f010000000a000b00000000000000034151a3ec46b5670a682b0a63394f863587d1bc97483b1b6c70eb58e7f0aed1920000000000000000003aade2b98391ba7230252530cdd5124183a9f4e582660666ae873da48173ea5f

Deserialised

Key Pos. Size
(bytes)
Value
(hex)
Header: [0] 1 0xff
Version: [1] 1 0x03
Network: [2] 1 0x3f
TypeGroup: [3] 4 0x01000000
Type: [7] 2 0x0a00
Nonce: [9] 8 0x0b00000000000000
SenderPublicKey: [17] 33 0x034151a3ec46b5670a682b0a63394f863587d1bc97483b1b6c70eb58e7f0aed192
Fee: [50] 8 0x0000000000000000
Memo Length: [58] 1 0x00
Lock Id: [59] 32 0x3aade2b98391ba7230252530cdd5124183a9f4e582660666ae873da48173ea5f