Skip to main content
An operator is the institution that holds a lending market’s lender-of-record role and runs the market. An issuer deploys a market without parties, and the market takes no loans until an operator adopts it. Only an institution Trusset approved as a lender of record can take the role through this API. This group covers the endpoints built for that institution. They find and review markets seeking a lender of record, take the role, and manage the roles on each market afterwards. Running an adopted market, including liquidation management, is documented in Lending. This group is the bank’s side of a market. Launch a credit line walks through it with the decision at each step, and Trusset for banks lists every tool a lender of record uses.

Base Path

These are Lending API endpoints. Authentication, the response envelope, unsigned writes, rate limits and credits work as described in Lending. The queue endpoints that act on one market take its contract address, because a candidate usually does not record the market yet. After adoption, the /markets/{marketId} endpoints take the market ID that Confirm Lender Role returns.

Taking a market

Adoption is final. No path returns the market to seeking a lender of record, and every address in the adoption terms receives its role in the same transaction. Check each one before signing.
1

Find a market

List Queued Markets returns the markets this instance may take or is waiting on. Each row names its origin, canAccept says whether this instance can take the market, and acceptBlock says why not when an open market can only be taken by a nominated wallet. List Pending Markets shows every market on the network still seeking a lender of record.
2

Review it

Get Queued Market covers the market, its offering, the terms status and the asset data the issuer attested. It describes the collateral token twice, as the chain reports it and as the issuer published it, and ends with a deterministic review.
3

Take the role

Accept Lender Role returns the adoption transaction. It names every party on the market, declares how seized collateral is realized, and approves the asset data version reviewed. It can also install the borrower and provider registers, named by address, by verification profile or by whitelist. The verified wallet that signs it becomes the market’s operator wallet. Claiming an open market without a nomination takes two transactions, announced and then completed after a delay.
4

Record it

Once the transaction mines, Confirm Lender Role records the market on this instance. When a register the adoption installed is a whitelist the lender of record neither owns nor manages, it also offers the step that makes the lender of record one of the list’s managers. The market.id it returns is the ID every /markets/{marketId} endpoint takes from then on.
5

Confirm the handover

Adoption hands the oracle, rate model and insurance fund to their named owners in the same transaction. Get Handover confirms the handover is complete.
The market then continues through the market lifecycle: authorize, configure, publish terms, price, fund and lend.

Standing policies

An institution that takes many markets of the same deployer, or of the same collateral token, can record how it takes them once, as a standing policy. A policy never signs anything: each market is still adopted with one transaction signed by the lender’s own wallet. A matching market carries the policy in standingPolicy on the queue, the issuer app pre-fills the adoption form from it, and Confirm Lender Role publishes the policy’s terms library template as the market’s terms of use while the market has none.

Roles

Roles sit on three contracts: the market, its liquidation router and its price oracle. Adoption grants each party named in its terms the matching role. Add or remove holders later with Set Access Role, and check any address with Get Access Role. The wallet that administers a role signs each change, and the same POST with txHash verifies the mined transaction. An admin cannot remove its own admin role. To hand it to another wallet, the current admin grants it and the successor revokes the predecessor; Admin Handover returns both steps. The market admin may also name a guardian, MARKET_GUARDIAN: the institution’s own emergency wallet, able to pause the market, halt the oracle’s prices for at most 24 hours and remove a price signer, and nothing else. Get Guardians lists the holders, and Guardian and brakes says what each brake stops and keeps open. Every upgrade the admin signs, of the market, its router and its rate model, is announced 7 days ahead through Upgrade Market, and the insurance fund’s withdrawal runs the same notice through Withdraw from Insurance Fund. Set Liquidator Role grants or revokes the role that starts liquidations. The liquidations themselves, their settlement, Dutch auctions and liquidation bots are in Lending.