eos icon indicating copy to clipboard operation
eos copied to clipboard

how do I view the new permission list

Open wangyilin1987 opened this issue 8 years ago • 5 comments

i try this: cleos set account permission eoswangyilin view '{"threshold":1,"keys": [{"key": "EOS5SL61GpNqMUJmhrPE3ueq7XG41MujPieMEhaDDCT5F2L4fhyny","weight": 1}] ,"accounts":[]}'

and how to see the permissions 'view' contains? i can't found how to see list.

wangyilin1987 avatar Jul 17 '18 07:07 wangyilin1987

If the above command run successfully, you will see your new permission inside cleos get account eoswangyilin

andriantolie avatar Jul 17 '18 09:07 andriantolie

@andriantolie sorry,i lose put this:cleos set action permission eoswangyilin eosio.token transfer view i want see view had how many action's permission?

and cleos get account eoswangyilin only know eoswangyilin has a view permission,but don't know what action can call.

wangyilin1987 avatar Jul 17 '18 10:07 wangyilin1987

Ah, if that's what you mean, I believe there's no API to retrieve the list of linked actions. I think it will be a useful feature though.

Not exactly the proper way to get it though, but in the current code, I'm aware that if you are trying to delete the permission, it will complain and say which action is currently linked

andriantolie avatar Jul 17 '18 10:07 andriantolie

ok,I see, thank you!@andriantolie

wangyilin1987 avatar Jul 17 '18 11:07 wangyilin1987

Ah, if that's what you mean, I believe there's no API to retrieve the list of linked actions. I think it will be a useful feature though.

Not exactly the proper way to get it though, but in the current code, I'm aware that if you are trying to delete the permission, it will complain and say which action is currently linked

Great trick with deleting permission - I needed to verify that the linkauth is set correctly

n13 avatar Aug 04 '20 10:08 n13