Skip to main content
GET
Returns live loan state by on-chain loan ID, read from the market contract rather than from Trusset’s position records. Use this when you need authoritative figures for a payoff quote, a health check, or a liquidation decision. The read also carries the loan’s term: when it falls due, when its grace period ends, and whether it can already be liquidated on term alone. On a market that makes open-ended loans those fields are null.

Path Parameters

string
required
The market’s record ID, as id on List Markets, not its contract address. See Market IDs.
integer
required
On-chain loan ID. Must be a positive integer.

Response Fields

object
payee, debtFree, fixedRateBps, dueAt and term come from one batched chain read. When that read fails and the loan is read on its own instead, the response carries only loanId, borrower, collateralAmount, principal, accruedInterest, healthFactor, active and compliance.

Compliance

The collateral is a third-party security token whose issuer can freeze an address, revoke an identity, or pause the token after the loan opened. This block is that state, probed at request time. It is the difference between a loan that looks healthy and one whose collateral can actually be released.
object
On a CUSTODY market, the three holder checks run only when the transfer probe is unavailable or refuses the return. When the token allows the return, holderVerified, holderAddressFrozen and tokenPaused are null because they were not needed, not because they failed.
Treat restricted: null as unknown, never as unrestricted. It means the collateral token did not answer enough of the probes to establish its compliance state.
A full payoff is principal plus accruedInterest, plus the market’s repay fee where one is set, capped at 0.5 percent of the debt. Interest accrues every second, so add a small margin when quoting. The contract never takes more than the closing amount, so a slight overpayment is not transferred. Repay with all: true sizes the payment, fee included.

Error Codes