---
title: "Refinance a loan"
method: POST
path: "/v3/tx/refinance"
tags: ["Chain"]
---

# Refinance a loan

`POST /v3/tx/refinance`

Get signature data to complete a loan transaction. If not approved, authorization is required first.

## Request body

- object
  - `loanId` string, required — Loan's id.
  - `offerId` string, required — The id of the Offer selected by Borrower.
  - `userAddress` string, required — User's address.
  - `referral` unknown

## Response `200`

200

- object
  - `data` object
    - `type` string — BorrowerRefinance
    - `txRequest` object
      - `to` string — X2FI loan contract address
      - `data` string — Transaction data
  - `code` integer
  - `msg` string
  - `t` integer

---

[API](https://skmtc.dev/x2y2/apis/x2y2-fi-api.md) · [All operations](https://skmtc.dev/x2y2/apis/x2y2-fi-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/x2y2/x2y2-fi-api/revisions/c7da906644a6/schema)
