Last updated 1 year ago
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.
curl -L \ --request POST \ --url 'https://open-api.unisat.io/v2/inscribe/order/{orderId}/refund-estimate' \ --header 'Authorization: Bearer JWT'
{ "code": 0, "msg": "OK", "data": { "paidAmount": 1, "refundTxSize": 1, "safeRefundAmount": 1 } }