Skip to main content
POST
Collaboratively refund an EVM HTLC before timelock expiry.

Path Parameters

id
string<uuid>
required

Swap ID

Body

application/json

Request for collaborative refund of an EVM HTLC.

depositor_address
string
required

On-chain depositor address (the address that funded the HTLC via the coordinator). In the Permit2 flow this is a derived key, not the user's wallet address. Required so the server can sign the correct HTLC refund digest.

r
string
required

EIP-712 signature r (32-byte hex string, with or without 0x prefix)

s
string
required

EIP-712 signature s (32-byte hex string, with or without 0x prefix)

v
integer<int32>
required

EIP-712 signature v (depositor's coordinator-level signature)

Required range: x >= 0

Response

EVM HTLC refunded successfully

Response for collaborative refund of an EVM HTLC.

id
string
required

Swap ID

message
string
required

Success message

tx_hash
string
required

Transaction hash of the on-chain refund