POST
/
instant-refund-hash
Get instant refund hash for the given swap.
curl --request POST \
  --url https://{environment}.garden.finance/v3/instant-refund-hash \
  --header 'Content-Type: application/json' \
  --header 'garden-app-id: <api-key>' \
  --data '
{
  "order_id": "<string>"
}
'
{
  "status": "Ok",
  "result": {
    "status": "Ok",
    "error": "<string>",
    "result": "<string>"
  }
}
Retrieve the instant refund hashes for a Bitcoin swap order, one per UTXO. These can be used to refund an order immediately, before the atomic swap’s timelock expires. Submit the signatures with refund order using action=instant-refund.

Authorizations

garden-app-id
string
header
required

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

Body

application/json
order_id
string
required

Response

One hash per UTXO, in input order.

status
enum<string>
Available options:
Ok
result
object