EOS Table 数据整理 (RPC get_table_rows)

http://eosfans.io/topics/926

一份RPC接口返回的table数据

table

  1. producers
  2. global
  3. voters
  4. delband
  5. rammarket
  6. refunds
  7. namebids
params: {
  json: true,
  code: "eosio",
  scope: "eosio",
  table: "userres",
  limit: 100,
  lower_bound: 0,
  uppper_bound: -1
}

1. producers

rows: [{

  is_active:1
  last_claim_time:"1529459862000000"
  location:0
  owner:"123singapore"
  producer_key:"EOS71UbkZzuz55WNBpsEVQzkXrZAJ2XyLoQiEcS9WKwbYambhFxWb"
  total_votes:"11657009543757334.00000000000000000"
  unpaid_blocks:0
  url:"http://eos.vote"

}]

2. global

rows: [{
    base_per_transaction_net_usage:12
    context_free_discount_net_usage_den:100
    context_free_discount_net_usage_num:20
    deferred_trx_expiration_window:600
    last_name_close:"2000-01-01T00:00:00.000"
    last_pervote_bucket_fill:"1529491544000000"
    last_producer_schedule_size:21
    last_producer_schedule_update:"2018-06-20T11:11:40.000"
    max_authority_depth:6
    max_block_cpu_usage:200000
    max_block_net_usage:1048576
    max_inline_action_depth:4
    max_inline_action_size:4096 
    max_ram_size:"68719476736"
    max_transaction_cpu_usage:150000 
    max_transaction_delay:3888000
    max_transaction_lifetime:3600
    max_transaction_net_usage:524288
    min_transaction_cpu_usage:100
    net_usage_leeway:500 
    perblock_bucket:35490081  
    pervote_bucket:269657295
    target_block_cpu_usage_pct:1000  
    target_block_net_usage_pct:1000
    thresh_activated_stake_time:"1529492943000000"
    total_activated_stake:"2424156767873" 
    total_producer_vote_weight:"6174542594341396480.00000000000000000"
    total_ram_bytes_reserved:"6062616000"
    total_ram_stake:967627208 
    total_unpaid_blocks:93736
}]

3. voters

rows: [{
    deferred_trx_id:0
    is_proxy:0
    last_unstake_time:"1970-01-01T00:00:00"
    last_vote_weight:"0.00000000000000000"
    owner:"111111111114"
    producers:[]
    proxied_vote_weight:"0.00000000000000000"
    proxy:""
    staked:46200
    unstaking:"0.0000 EOS"
}]

4. delband

rows:[{
    
    "from":"heztcnbvgmge",
    "to":"heztcnbvgmge",
    "net_weight":"82.5000 EOS",
    "cpu_weight":"82.5000 EOS"
}]


5.rammarket

row: [{
    "supply":"10000000000.0000RAMCORE",
    "base":{"balance":"62656849725 RAM","weight":"0.50000000000000000"},
    "quote":{"balance":"1096762.9136 EOS","weight":"0.50000000000000000"
}]

6 refunds

rows:[{

    "owner":"gm2tsojtgene",
    "request_time":"2018-06-20T02:37:55",
    "net_amount":"4462.0000 EOS",
    "cpu_amount":"4462.0000 EOS"

}]

7. namebids

rows: [{
    high_bid:25301
    high_bidder:"eoszhanghuan"
    last_bid_time:"1529479395500000"
    newname:"1"
}]

8. userres

[{

    cpu_weight:"82.5000 EOS"
    net_weight:"82.5000 EOS"
    owner:"heztcnbvgmge"
    ram_bytes:8155
}]


curl --request POST --data-binary '{"json": true,"code": "eosio","scope":"eosio","table":"rammarket"}' -H 'content-type: application/x-www-form-urlencoded; charset=UTF-8'
http://hapi.eosrio.io/v1/chain/get_table_rows

curl --request POST --data-binary '{"json": true,"code": "eosio","scope":"eosio","table":"global"}' -H 'content-type: application/x-www-form-urlencoded; charset=UTF-8' http://hapi.eosrio.io/v1/chain/get_table_rows

你可能感兴趣的:(区块链)