Skip to main content

GetLoan

Retrieves detailed information about a specific loan, including lender details.

Request

GET /nxt?requestType=getLoan

Parameters

NameTypeDescriptionRequired
loanlongLoan IDYes
includeLendersbooleanInclude lender detailsOptional

Response

{
"loan": "55555",
"account": "1234567890",
"accountRS": "NXT-abcd-efgh-ijkl",
"chain": 1,
"unitsQNT": "1000000000",
"interestRate": 5,
"collateralTotem": "11111",
"totemQNT": "500000000",
"isFunded": true,
"raisedUnitsQNT": "500000000",
"creationHeight": 1000,
"issuanceHeight": 1000,
"repaymentHeight": 2000,
"repaidAmountQNT": "0",
"owedAmountQNT": "1050000000",
"isRepaid": false,
"isRescued": false,
"lenders": [
{
"account": "2222222222",
"accountRS": "NXT-zyxw-vuts-rqpo",
"unitsQNT": "250000000",
"height": 1500
}
]
}

Response Fields Description

FieldTypeDescription
loanstringLoan ID
accountstringBorrower account ID
accountRSstringBorrower in NXT format
chainintBeta chain ID
unitsQNTstringLoan amount in currency units
interestRatelongInterest rate percentage
collateralTotemstringTotem ID used as collateral
totemQNTstringTotem collateral amount
isFundedbooleanWhether the loan has been funded
raisedUnitsQNTstringAmount raised so far
creationHeightintBlock height of loan creation
issuanceHeightintBlock height when loan was issued
repaymentHeightintBlock height for repayment
repaidAmountQNTstringAmount already repaid
owedAmountQNTstringRemaining amount owed
isRepaidbooleanWhether the loan is fully repaid
isRescuedbooleanWhether the loan was rescued
lendersarrayArray of lender details (if includeLenders=true)

Example

# Get loan details with lender info
curl "http://localhost:22024/nxt?requestType=getLoan&loan=55555&includeLenders=true"