Refund estimate
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
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
orderIdstringRequired
Responses
200
Successful operation
application/json
codeinteger · enumOptionalPossible values:
msgstringOptionalExample:
OK401
Invalid API Key
post/v2/inscribe/order/{orderId}/refund-estimate
POST /v2/inscribe/order/{orderId}/refund-estimate HTTP/1.1
Host: open-api-fractal.unisat.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"code": 0,
"msg": "OK",
"data": {
"paidAmount": 1,
"refundTxSize": 1,
"safeRefundAmount": 1
}
}Last updated