GET
/
orders
/
{order}
/
instant-refund-hash
Get instant refund hash for the given swap.
curl --request GET \
  --url https://{environment}.garden.finance/v2/orders/{order}/instant-refund-hash \
  --header 'garden-app-id: <api-key>'
{
  "status": "Ok",
  "error": "<string>",
  "result": "<string>"
}

Retrieve the instant refund hash for a specific swap order. This hash can be used to immediately refund an order before the atomic swap’s timelock expires.

Authorizations

garden-app-id
string
header
required

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

Path Parameters

order
string
required

Response

200 - application/json

Swap with the given ID.

The response is of type object.