Role Auth Contract Interface
Role Authorization
queryRoles
查询某一账户的所有角色。
参数
address
- 待查询的账户地址返回值
address[]
- 拥有的角色列表示例
$ scm RoleManagement queryRoles --account 0x101e99e1a654a99308175042aff4833a6528be74
输出:
{
"id": 1,
"jsonrpc": "2.0",
"result": "0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000558c280233cee856fb53931eb18747a40e688a430000000000000000000000001be912bdfe6ae5d28f7e9d2f1a5329788e5a4fe6"
}
queryAccounts
查询某一角色下的所有账户。
参数
address
- 角色地址返回值
address[]
- 拥有此角色的所有账户示例
$ scm RoleManagement queryAccounts --address 0x558c280233cee856fb53931eb18747a40e688a43
输出:
{
"id": 1,
"jsonrpc": "2.0",
"result": "0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000101e99e1a654a99308175042aff4833a6528be74"
}