EOS账户权限的使用
从前一篇文章讲解了EOS账户权限介绍以及增删改查
下面介绍下账户权限的使用
基于上篇第5步(为bcskill账号增加自定义权限组custom,基于active )开始进行
1.首先先给账号bcskill转点SYS代币
发币步骤请参考(零基础EOS 节点部署,BP出块(三)-->开始部署),这里就不多做介绍
cleos push action eosio.token transfer '["eosio", "bcskill","1000.0000 SYS","bcskill"]' -p eosio
2.查询bcskill账户余额
cleos get currency balance eosio.token bcskill
3.用bcskill账号已custom权限转账给eosio
cleos push action eosio.token transfer '["bcskill", "eosio","100.0000 SYS","bcskill"]' -p bcskill@custom
4.custom权限组绑定transfer action
cleos set action permission bcskill eosio.token transfer custom
5.用bcskill账号已custom权限转账给eosio
cleos push action eosio.token transfer '["bcskill", "eosio","100.0000 SYS","bcskill"]' -p bcskill@custom
6.查询bcskill账户余额
cleos get currency balance eosio.token bcskill