Update swap by doing an action.
Orders
Gasless
PATCH
Update swap by doing an action.
Execute gasless Hashed Time Lock Contract (HTLC) actions on an existing swap order, such as initiate, redeem, refund, and instant refund.
Initiate
Useaction=initiate to initiate the swap on the source chain. The create order endpoint returns chain-specific signing data — sign it and submit here. The relayer broadcasts the transaction on the user’s behalf, making the process gasless.
- EVM
- Solana
- Starknet
The create order response includes
typed_data with EIP-712 domain and message fields. Sign this using eth_signTypedData_v4.Supported on all EVM chains (Ethereum, Arbitrum, Base, etc.) and Tron.An ECDSA signature generated by the initiator over an EIP-712 typed data message containing the redeemer address, timelock, amount, and secret hash from the create order endpoint.
Example
Want to enable gasless initiations for your users? Reach out to us on Townhall and we’ll help you get set up.
Authorizations
Path Parameters
Query Parameters
The HTLC action to execute on the order.
Available options:
initiate, redeem, refund, instant-refund Body
application/json
- Initiate
- Redeem
- Refund
- Instant Refund
Initiate the swap on the source chain. The request body is chain-specific — refer to the Initiate section above for EVM, Solana, and Starknet request formats.