Skip to main content

GetLoanApplications

Retrieves loan applications for currencies, filterable by account, currency, and pagination.

Request

GET /nxt?requestType=getLoanApplications

Parameters

NameTypeDescriptionRequired
accountstringFilter by applicant accountOptional
currencylongFilter by currencyOptional
includeLendersbooleanInclude lender detailsOptional
firstIndexintPagination start indexOptional
lastIndexintPagination end indexOptional

Response

{
"loanApplications": [
{
"loan": "55555",
"account": "1234567890",
"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
}
]
}

Example

# Get all loan applications for a currency
curl "http://localhost:22024/nxt?requestType=getLoanApplications&currency=987654321&includeLenders=true"

# Get applications for a specific account
curl "http://localhost:22024/nxt?requestType=getLoanApplications&account=1234567890"