Queries
Check Role
Check which roles an account holds on a stock token contract
GET
Queries the on-chain role assignments for a specific account. When theDocumentation Index
Fetch the complete documentation index at: https://docs.trusset.org/llms.txt
Use this file to discover all available pages before exploring further.
role query parameter is provided, checks a single role. When omitted, returns all roles for the account.
Valid roles: ISSUER, SUB_ISSUER, CONTROLLER, LEGAL_OPERATOR.
Path Parameters
Address of the stock token contract.
Ethereum address to check.
Query Parameters
Specific role to check. When omitted, all roles are returned. Must be one of:
ISSUER, SUB_ISSUER, CONTROLLER, LEGAL_OPERATOR.Response Fields
Request status.
Role check result. Contains either a single
hasRole boolean or a roles map depending on whether a specific role was queried.