Skip to main content

GetLoan

Retrieves detailed information about a specific loan.

Request​

GET /nxt?requestType=getLoan

All endpoints use port 22024 by default.

Parameters​

NameTypeDescriptionRequired
loanlongLoan IDYes
includeLendersbooleanInclude lenders informationNo

Response​

{
"loan": {
"id": 1234567890123456789,
"account": "1234567890123456789",
"accountRS": "SHAMWARI-ABCD-EFGH-IJKL-MNOPQ",
"currency": 9876543210123456789,
"unitsQNT": 1000000,
"amountQNT": 500000000,
"interestRate": 5,
"issuanceHeight": 100000,
"repaymentHeight": 110000,
"totem": 1111111111111111111,
"quantityQNT": 1000,
"lenders": [],
"funded": true,
"repaid": false,
"rescued": false,
"defaulted": false
},
"errorCode": 0,
"errorDescription": ""
}

Example​

curl "http://localhost:22024/nxt?requestType=getLoan&loan=1234567890123456789&includeLenders=true"