---
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`

## Request

- Base URL: `https://open-api.unisat.io`
- URL: `https://open-api.unisat.io/v2/inscribe/order/{orderId}/refund-estimate`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/unisat/apis/unisat-wallet-openapi/docs/v2/inscribe/order/:orderId/refund-estimate/post.ts> (a function with typed inputs; its response is checked against the schema)

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.dev/unisat/apis/unisat-wallet-openapi.md) - [All operations](https://skmtc.dev/unisat/apis/unisat-wallet-openapi/llms.txt) - [OpenAPI document](https://skmtc.dev/unisat/apis/unisat-wallet-openapi/revisions/68de350419c7?raw)
