Skip to main content
GET
Returns the complete market record plus five enrichment blocks read live from the chain: onChain, oracleStatus, configurationStatus, identityGate, and liquidationStats. The lender-of-record fields are reconciled against the factory on the same call, so curator, seekingCurator, realizationMode, liquidityCommitment and collateralAgent are the chain’s answer when the factory can be read. A failed factory read serves the stored values, and errors does not name it. saleRecipient is read from the market’s liquidation router, which holds the recipient in force. List Markets returns a fixed projection. This endpoint returns every stored field on the market, including the settlement asset triple and the decimals the backend uses when parsing your amounts.
Each block falls back on its own. One failed read leaves that block null or marked unreadable and does not empty the others.errors names every section that could not be read, as { section, message }, where section is onChain, configurationStatus, liquidationStats or oracle. It is empty on a clean read. Branch on it rather than inferring an outage from a null, because some blocks are legitimately null on a market that has no address or no oracle yet.

Path Parameters

string
required
The market’s record ID, as id on List Markets, not its contract address. See Market IDs.

Response Fields

object
A register that answers with a bare bool works on the current market implementation, which reads either shape. A market still on the earlier implementation reads (bool, uint8) only. There every deposit and every borrow reverts until the market admin moves it on with Upgrade Market. A register that answers neither shape refuses every borrower until the admin replaces it through Set Identity Gates. Taking the lender-of-record role is not blocked in either case. note says which applies: show it verbatim.
configurationStatus here is a verdict without the calldata to act on it, and it is cached for up to 10 seconds. Get Configuration Status returns the outstanding transactions and who must sign each. Get Setup Steps returns them as an ordered checklist.

Error Codes