PATCH
/
orders
/
{order}
Update swap by doing an action.
curl --request PATCH \
  --url https://{environment}.garden.finance/v2/orders/{order} \
  --header 'Content-Type: application/json' \
  --header 'garden-app-id: <api-key>' \
  --data '{
  "signature": "<string>"
}'
{
  "status": "Ok",
  "error": "<string>",
  "result": "<string>"
}

Execute Hashed Time Lock Contract (HTLC) actions on an existing swap order, such as initiate, redeem, refund, and instant refund.

Authorizations

garden-app-id
string
header
required

If you do not yet have an APP ID, please follow these steps.

Path Parameters

id
string
required

Query Parameters

action
enum<string>
required
Available options:
initiate,
redeem,
refund,
instant-refund

Body

application/json

Response

200 - application/json

Executed action successfully.

The response is of type object.