Skip to main content
GET
Returns every wallet that holds GUARDIAN_ROLE on the market. Pass address to ask about one wallet. Guardian and brakes says what the role can and cannot do. The list is built from the lending index’s record of grantRole and revokeRole on the market, then checked against the chain. Every listed wallet is read with hasRole, and a wallet the index no longer shows but the chain confirms is added without its grant details. The market admin names a guardian after adoption, with Set Access Role as MARKET_GUARDIAN. Trusset and the factory never hold the role, and no market has a guardian by default. The oracle reads the role off the market, so this list also says who may halt its prices with Halt Prices.

Path Parameters

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

Query Parameters

string
A wallet to check, as a 0x-prefixed 40-character hex address. The response then carries address and isGuardian beside the list, and the wallet is read from the chain whether or not the index lists it. The zero address is ignored, as if none were sent.

Response Fields

object
A wallet the index shows but the chain no longer confirms is dropped from the list. One whose chain read failed stays listed with confirmed: null. Treat that as unknown, not as a held role, and read again before relying on it.

Error Codes