Role Auth Contract Interface
Role Authorization
queryRoles
查询某一账户的所有角色。
Parameters
address
- The account addressReturns
address[]
- The roles of the accountExample
$ scm RoleManagement queryRoles --account 0x101e99e1a654a99308175042aff4833a6528be74
output:
{
"id": 1,
"jsonrpc": "2.0",
"result": "0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000558c280233cee856fb53931eb18747a40e688a430000000000000000000000001be912bdfe6ae5d28f7e9d2f1a5329788e5a4fe6"
}
queryAccounts
查询某一角色下的所有账户。
Parameters
address
- The role addressReturns
address[]
- The accounts addressExample
$ scm RoleManagement queryAccounts --address 0x558c280233cee856fb53931eb18747a40e688a43
output:
{
"id": 1,
"jsonrpc": "2.0",
"result": "0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000101e99e1a654a99308175042aff4833a6528be74"
}