美文网首页
查询EOS投票率

查询EOS投票率

作者: 人仙儿a | 来源:发表于2018-07-22 15:05 被阅读98次

    查询EOS投票率

    cleos get table eosio eosio global

    {
      "rows": [{
          "max_block_net_usage": 1048576,
          "target_block_net_usage_pct": 1000,
          "max_transaction_net_usage": 524288,
          "base_per_transaction_net_usage": 12,
          "net_usage_leeway": 500,
          "context_free_discount_net_usage_num": 20,
          "context_free_discount_net_usage_den": 100,
          "max_block_cpu_usage": 200000,
          "target_block_cpu_usage_pct": 1000,
          "max_transaction_cpu_usage": 150000,
          "min_transaction_cpu_usage": 100,
          "max_transaction_lifetime": 3600,
          "deferred_trx_expiration_window": 600,
          "max_transaction_delay": 3888000,
          "max_inline_action_size": 4096,
          "max_inline_action_depth": 4,
          "max_authority_depth": 6,
          "max_ram_size": "68719476736",
          "total_ram_bytes_reserved": "54058107801",
          "total_ram_stake": "36871974984",
          "last_producer_schedule_update": "2018-07-22T06:34:29.500",
          "last_pervote_bucket_fill": "1532241253000000",
          "pervote_bucket": 242428482,
          "perblock_bucket": 37915072,
          "total_unpaid_blocks": 95845,
          "total_activated_stake": "3382094482821",
          "thresh_activated_stake_time": "1529505892000000",
          "last_producer_schedule_size": 21,
          "total_producer_vote_weight": "11805164118048757760.00000000000000000",
          "last_name_close": "2018-07-19T07:58:48.000"
        }
      ],
      "more": false
    }
    

    其中 total_activated_stake 为已投票的stake的 EOS币,但要除以10000

    查询EOS总量

    cleos2 get currency stats eosio.token EOS
    {
      "EOS": {
        "supply": "1005054594.1828 EOS",
        "max_supply": "10000000000.0000 EOS",
        "issuer": "eosio"
      }
    }
    

    其中 supply 为已经发放的 EOS币,只要将total_activated_stake /10000 / supply 就是当前已投票的比率,目前是33.65%。

    EOS总量100亿?

    但是这里有一个奇怪的问题,已经发放了10亿枚,但是总量居然有100亿?而EOS之前是erc20的时候总量是10亿,上了主网扩张了100亿了?
    可能原因:每年给5%的eos奖励producer,那么总量会上涨5%,所以总量实际上越来越大的,按这样算,翻一倍的时间是1/5%=20年,达到100亿需要翻10倍,也就是200年!所以不用计较这个max_supply多大了。。

    相关文章

      网友评论

          本文标题:查询EOS投票率

          本文链接:https://www.haomeiwen.com/subject/tywlmftx.html