zoukankan      html  css  js  c++  java
  • EOS 用户权限相关命令

      首先,环境相关的配置请参考https://www.cnblogs.com/hbright/p/9266420.html

      在这里,我们一起看年EOS权限相关的东东。我们先查看hml这个用户的相关信息

    hml@Ulord-19:~$ cleos --wallet-url http://127.0.0.1:8900 -u http://10.186.11.211:8888 get account  hml
    permissions: 
         owner     1:    1 EOS7Ef4kuyTbXbtSPP5Bgethvo6pbitpuEz2RMWhXb8LXxEgcR7MC
            active     1:    1 EOS7Ef4kuyTbXbtSPP5Bgethvo6pbitpuEz2RMWhXb8LXxEgcR7MC
    memory: 
         quota:     1.201 GiB    used:     3.731 KiB  
    
    net band 
         staked:  100000000.0000 SYS           (total stake delegated from account to self)
         delegated:       0.0000 SYS           (total staked delegated to account from others)
         used:               209 bytes
         available:        36.62 TiB  
         limit:            36.62 TiB  
    
    cpu band
         staked:  100000000.0000 SYS           (total stake delegated from account to self)
         delegated:       0.0000 SYS           (total staked delegated to account from others)
         used:             1.437 ms   
         available:         2133 hr   
         limit:             2133 hr   
    
    SYS balances: 
         liquid:        20000.0000 SYS
         staked:    200000000.0000 SYS
         unstaking:         0.0000 SYS
         total:     200020000.0000 SYS
    
    producers:     <not voted>
    cleos --wallet-url http://127.0.0.1:8900 --url http://10.186.11.211:8888 set account permission hml custom '{"threshold" : 2, "keys" : [{"key": "EOS7Ef4kuyTbXbtSPP5Bgethvo6pbitpuEz2RMWhXb8LXxEgcR7MC","weight": "1"}], "accounts" : [{"permission":{"actor":"usera","permission":"active"},"weight":1}]}' active
    
    cleos --wallet-url http://127.0.0.1:8900 --url http://10.186.11.211:8888  set account permission hml active '{"threshold" : 2, "keys" : [{"key": "EOS7Ef4kuyTbXbtSPP5Bgethvo6pbitpuEz2RMWhXb8LXxEgcR7MC","weight": "1"}], "accounts" : [{"permission":{"actor":"usera","permission":"active"},"weight":1}]}' owner
    hml@ulord:~$ cleos --wallet-url http://127.0.0.1:8900 -u http://10.186.11.211:8888 get account hml
    permissions: 
         owner     1:    1 EOS7Ef4kuyTbXbtSPP5Bgethvo6pbitpuEz2RMWhXb8LXxEgcR7MC
            active     2:    1 EOS7Ef4kuyTbXbtSPP5Bgethvo6pbitpuEz2RMWhXb8LXxEgcR7MC1 usera@active, 
               custom     2:    1 EOS7Ef4kuyTbXbtSPP5Bgethvo6pbitpuEz2RMWhXb8LXxEgcR7MC1 usera@active, 
    memory: 
         quota:     1.201 GiB    used:     4.124 KiB  
    
    net band 
         staked:  100000000.0000 SYS           (total stake delegated from account to self)
         delegated:       0.0000 SYS           (total staked delegated to account from others)
         used:               368 bytes
         available:        36.62 TiB  
         limit:            36.62 TiB  
    
    cpu band
         staked:  100000000.0000 SYS           (total stake delegated from account to self)
         delegated:       0.0000 SYS           (total staked delegated to account from others)
         used:             2.216 ms   
         available:         2133 hr   
         limit:             2133 hr   
    
    SYS balances: 
         liquid:        20000.0000 SYS
         staked:    200000000.0000 SYS
         unstaking:         0.0000 SYS
         total:     200020000.0000 SYS
    
    producers:     <not voted>
    
    hml@ulord:~$ 
  • 相关阅读:
    在Fiddler中捕获IIS / ASP.NET流量
    SQL Server 索引分析开关
    解决谷歌浏览器在F12情况下自动断点问题(Paused in debugger)
    SQL Server 移位运算符
    手动更新了packages.config Nuget配置文件,自动引用dll
    转载:如何严格限制session在30分钟后过期!
    Sphinx 2.0.8 发布,全文搜索引擎 Installing Sphinx on Windows
    Where does Oracle SQL Developer store connections? oracle SQL Developer 连接信息保存的位置,什么地方
    利用 ROW_NUMBER() OVER ( ORDER BY 进行选择性排序,按不同字段进行排序处理,分页
    大数据学习网站
  • 原文地址:https://www.cnblogs.com/hbright/p/9274476.html
Copyright © 2011-2022 走看看