Skip to content

Token Tables ​

accounts ​

Store all account balance created by this contract

  • Code: eosio.token
  • Table: accounts
  • Scope: user
  • Key: symbol_raw_value
  • Data
FieldsTypeDescription
balanceeosio::assetToken balance
  • cleos Query Example
shell
cleos get table eosio.token <USER> accounts
  • curl query example
shell
curl <NODEOS_API_IP>/v1/chain/get_table_rows -X POST -d '{"scope":"<USER>", "code":"eosio.token", "table":"accounts", "json": true}'

stat ​

Store token supply created by this contract

  • Code: eosio.token
  • Table: stat
  • Scope: symbol_raw_value
  • Key: symbol_raw_value
  • Data
FieldsTypeDescription
supplyeosio::assetAvailable token supply
max_supplyeosio::assetMaximum token supply
issuereosio::nameIssuer of this token
  • cleos Query Example
shell
cleos get table eosio.token <SYMBOL_RAW_VALUE> stat
  • curl query example
shell
curl <NODEOS_API_IP>/v1/chain/get_table_rows -X POST -d '{"scope":"<SYMBOL_RAW_VALUE>", "code":"eosio.token", "table":"stat", "json": true}'s

metadata ​

Store token metadata

  • Code: eosio.token
  • Table: metadata
  • Scope: symbol_raw_value
  • Key: symbol_raw_value
  • Data
FieldsTypeDescription
symboleosio::symbolThe symbol of the token
nameeosio::nameThe name of the token
iconstringThe URL of token's icon
descriptionstringThe description of the token
coloruint32_tThe display color of the token
  • cleos Query Example
shell
cleos get table eosio.token <SYMBOL_RAW_VALUE> metadata
  • curl query example
shell
curl <NODEOS_API_IP>/v1/chain/get_table_rows -X POST -d '{"scope":"<SYMBOL_RAW_VALUE>", "code":"eosio.token", "table":"metadata", "json": true}'s

tokenconfig ​

Store token strategy configuration

  • Code: eosio.token
  • Table: tokenconfig
  • Scope: symbol_raw_value
  • Key: symbol_raw_value
  • Data
FieldsTypeDescription
trigger_supplyeosio::assetThe threshold supply for when strategy will be applied to transfer
strategyuint16_tThe strategy will be used to decide which config to use tax or burn. 0 nothing, 1 burn, 2 tax
rate_bpuint16_tThe rate where strategy will be applied in basis where 1 is 0.01%
tax_receivereosio::nameThe account where tax will be transfer to
whitelisted_accountsstd::vector<eosio::name>The accounts will be exempted from strategy
  • cleos Query Example
shell
cleos get table eosio.token <SYMBOL_RAW_VALUE> tokenconfig
  • curl query example
shell
curl <NODEOS_API_IP>/v1/chain/get_table_rows -X POST -d '{"scope":"<SYMBOL_RAW_VALUE>", "code":"eosio.token", "table":"tokenconfig", "json": true}'s