v1

latestOpenAPI 3.1.02026-07-1410027.2 KB
Chain

Get a loan

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

post/v3/tx/borrow

Request body

borrowerAddressstring required

Borrower's address.

tokenIdstring required

Token id of the NFT.

offerIdstring required

The id of the Offer selected by Borrower.

{"stackTrail":"paths:/v3/tx/borrow:post:requestBody:content:application/json:schema:properties:referral","oasType":"schema","type":"unknown","description":"Referral code."}
{"stackTrail":"paths:/v3/tx/borrow:post:requestBody:content:application/json:schema:properties:lenderRefinanceSwitch","oasType":"schema","type":"unknown","description":"NFT Protection switch:[1:Open, 2:Close]."}
isCheckboolean

Whether to do approval check.[Default: True]

Response

200

codeinteger
msgstring
tinteger

Example response

{
  "data": {
    "type": "borrow"
  },
  "code": 200,
  "msg": "ok",
  "t": 1559204889719
}