Skip to main content
GET
Get EIP-712 parameters for collaborative EVM HTLC refund.

Path Parameters

id
string<uuid>
required

Swap ID

Response

EIP-712 CollabRefund parameters

EIP-712 parameters the client needs to sign for collaborative refund.

amount
string
required

WBTC amount locked in the HTLC (decimal string)

calls_hash
string
required

keccak256(abi.encode(calls)) for the exact calls array the depositor signs over.

chain_id
integer<int64>
required

EVM chain ID

Required range: x >= 0
claim_address
string
required

Claim address (server's EVM address)

coordinator_address
string
required

HTLCCoordinator contract address (EIP-712 verifyingContract)

coordinator_version
integer<int32>
required

EIP-712 domain version of the coordinator at coordinator_address — the CollabRefund signature must use it or recovery fails on-chain.

Required range: x >= 0
min_amount_out
string
required

Minimum output amount for the sweep (always 0). This is the minAmountOut field in the EIP-712 struct.

preimage_hash
string
required

Preimage hash (0x-prefixed, 32-byte hex)

server_signer_address
string
required

Server's signer EOA address (the caller field in the EIP-712 struct)

sweep_token
string
required

Token the depositor receives after refund (always the BTC-pegged HTLC token, tBTC/WBTC). This is the sweepToken field in the EIP-712 struct.

timelock
integer<int64>
required

HTLC timelock (unix timestamp)

Required range: x >= 0
token
string
required

WBTC token address