---
title: "Estimate the size of the refund transaction"
method: POST
path: "/v2/inscribe/order/{orderId}/refund-estimate"
tags: ["Inscribe"]
---

# Estimate the size of the refund transaction

`POST /v2/inscribe/order/{orderId}/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.

## Path parameters

- `orderId` string, required

## Response `200`

Successful operation

- object
  - `code` 0 | -1
  - `msg` string
  - `data` object
    - `paidAmount` integer
    - `refundTxSize` integer — The refund amount = size * refundFeeRate
    - `safeRefundAmount` integer

## Other responses

- `401` — Invalid API Key

---

[API](https://skmtc.net/unisat/apis/unisat-wallet-openapi.md) · [All operations](https://skmtc.net/unisat/apis/unisat-wallet-openapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/unisat/unisat-wallet-openapi/revisions/68de350419c7/schema)
