Refund estimate

Estimate the size of the refund transaction

post

RefundAmount = PaidAmount - RefundTxSize * RefundFeeRate. This value must be greater than SafeRefundAmount, otherwise there's a risk of losing inscriptions used for payment due to errors.

Authorizations
Path parameters
orderIdstringRequired
Responses
200
Successful operation
application/json
post
POST /v2/inscribe/order/{orderId}/refund-estimate HTTP/1.1
Host: open-api.unisat.io
Authorization: Bearer JWT
Accept: */*
{
  "code": 0,
  "msg": "OK",
  "data": {
    "paidAmount": 1,
    "refundTxSize": 1,
    "safeRefundAmount": 1
  }
}

Last updated