EOS Guide: Create Custom EOS Permissions For Each DApp
In the last post, I showed you how to set up multisig layers on your EOS account.
https://steemit.com/eos/@eosdacvietnam/eos-guide-keep-your-eos-account-safe-using-multisig-structure
And now, I am gonna show you how to Create Custom EOS Permissions For Each DApp.
Look at my testing account first:
In this guide, I take OpenBRM dApp as an example.
Here is my BRM balance:
openbrmeos11
is the account creating BRM tokens
Focus onContract Actions
, you will need that information later!
Let's Create Custom EOS Permissions for OpenBRM dApp!
1)Login
your EOS account with your Active Key
on bloks.io => Wallet => Permissions Manager
2)Click and you will see:
3)Put on the info
- Permission Name (not longer than 12 characters):
openbrm
- Parent:
active
- Threshold:
1
- Keys:
EOS5xRxR5bGADKvqbAtNEJBgqYEzoY3Mn9U9niUKQXsJFXBx6jYVT
Then, click Save Permission
Check out your account permissions
4)Go to Wallet => Link/Unlink Auth
5)Put on the info
- Permission:
openbrm
- Contract Name:
openbrmeos11
(this account created BRM tokens) - Contract Action: Let it BLANK or take ONLY 1 action
** If you let it BLANK, this custom permission can take all of the actions above
** In this guide, I put onstake
to take a specific action. That means, besidesstake
, you cannot do any other actions such as transfer, unstake, etc.
Note: If you want to take more specific actions, repeat step 5!
Then, click Link Auth
Check out your account permissions again
Congratulations! We are done!
Let's test!
Sign up your EOS account on https://openbrm.io/ first!
Then, go to OpenBRM dApp on EOSToolkit.io => Attach your account. My account is
account4test@openbrm
I am gonnastake
1,000
BRM tokens
It works!
Let's try unstaking!
I am gonnaunstake
1,000
BRM tokens- It failed
The reason is that my custom permission can take only 1 action linked above -stake
. I cannot unstake or do any other actions
That's all!
Hãy bỏ phiếu cho eosdacserver
Đăng ký bản tin của chúng tôi để nhận thông báo và theo dõi chúng tôi trên các nền tảng mạng xã hội yêu thích của bạn:
Steemit | Discord | Telegram | Facebook | Twitter | Google-plus | Github | Instagram | Linkedin | Medium | Reddit | YouTube | Weibo| VK| Bihu