Risk and Access
Get Access Role
Check whether an address holds a role on the market, its router or its oracle
GET
Reads from the chain whether an address holds one of the six roles that Set Access Role grants and revokes. Use it before building a change, or to confirm which wallet can sign an administrative transaction.
For
ORACLE_SIGNER, the oracle owner reads as granted, because the owner can sign prices without a grant.
Path Parameters
string
required
Market ID.
string
required
Address to check. Must be a 0x-prefixed 40-character hex address other than the zero address.
Query Parameters
string
required
One of
MARKET_ADMIN, MARKET_ISSUER, MARKET_LIQUIDATOR, ROUTER_ADMIN, ROUTER_OPERATOR or ORACLE_SIGNER. The role table says what each one controls.Response Fields
object
