Skip to main content
GET
Returns every document attached to a market, or to one of its loans, in one answer:
  • bundle: the documents in the market’s asset data, which the issuer’s wallet attested on the factory. A lender of record that adopts the market acknowledges the exact version standing at that moment. Read only here. Returned for the market itself (loanId 0).
  • documents: what the market admin recorded on the document registry for the market or the loan, read from the chain.
  • staged: loan documents staged for a loan’s borrower that wait for the market admin’s record. submittedBy names the loan’s borrower, which the server checks against the market; it does not prove who sent the entry, so compare the file with its SHA-256 before recording it.
  • history: every record and removal for this market and loan, from the index.
Reads happen on request and are not polled. The registry is one contract per network, ownerless and non-upgradeable; its address is in registry.address.

Who can call it

An API key of an instance that holds the market. A market of another instance answers MARKET_NOT_FOUND. Staged documents are listed for the instance that submitted them and, in full, for an instance one of whose verified wallets holds DEFAULT_ADMIN_ROLE on the market, because that wallet records them.

Path Parameters

string
required
The market’s record ID on your instance. See Market IDs.

Query Parameters

string
default:"0"
0 for the market itself, or the id of a loan the market opened. A loan the market never opened answers UNKNOWN_LOAN.

Visibility

A registry record with an ipfs:// or https locator is public; a record with no locator is private and carries the hash alone. A private document’s file never reaches Trusset or the chain. Ask the party that holds it for a copy, then compute its SHA-256 and compare it with contentHash: equal values prove it is the recorded file. The Issuer Portal does this in the browser with Verify a file.

Response Fields

object

Error Codes