1

Learning EOSJS right now, I wonder how to get the commonly used table names by EOSIO for eos.getTableRows method? It seems to be a very basic thing yet I can't seem to find a reference for it.

1

If you want the table names that can be queried, check out the eosio.system contract's abi.

Tables:

  • producers
  • global
  • voters
  • userres
  • delband
  • rammarket
  • refunds
  • namebids

Source | https://github.com/EOSIO/eos/blob/master/contracts/eosio.system/eosio.system.abi#L526

"tables": [{
      "name": "producers",
      "type": "producer_info",
      "index_type": "i64",
      "key_names" : ["owner"],
      "key_types" : ["uint64"]
    },{
      "name": "global",
      "type": "eosio_global_state",
      "index_type": "i64",
      "key_names" : [],
      "key_types" : []
    },{
      "name": "voters",
      "type": "voter_info",
      "index_type": "i64",
      "key_names" : ["owner"],
      "key_types" : ["account_name"]
    },{
      "name": "userres",
      "type": "user_resources",
      "index_type": "i64",
      "key_names" : ["owner"],
      "key_types" : ["uint64"]
    },{
      "name": "delband",
      "type": "delegated_bandwidth",
      "index_type": "i64",
      "key_names" : ["to"],
      "key_types" : ["uint64"]
    },{
      "name": "rammarket",
      "type": "exchange_state",
      "index_type": "i64",
      "key_names" : ["supply"],
      "key_types" : ["uint64"]
    },{
      "name": "refunds",
      "type": "refund_request",
      "index_type": "i64",
      "key_names" : ["owner"],
      "key_types" : ["uint64"]
    },{
       "name": "namebids",
       "type": "namebid_info",
       "index_type": "i64",
       "key_names" : ["newname"],
       "key_types" : ["account_name"]
    }
   ],
| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.