Skip to content

Airgrab Tables ​

global.share ​

Store all campaign data

  • Code: ultra.rgrab
  • Table: global.share
  • Scope: ultra.rgrab
  • Key: name
  • Data
FieldsTypeDescription
nameeosio::nameCampaign Name
quantityeosio:assetReward quantity
pointsuint64_tTotal point of the campaign
managereosio::nameManager of the campaign
deadlineuint32_tDeadline of the campaign in block number
  • cleos Query Example
shell
cleos get table ultra.rgrab ultra.rgrab global.share
  • curl query example
shell
curl <NODEOS_API_IP>/v1/chain/get_table_rows -X POST -d '{"scope":"ultra.rgrab", "code":"ultra.rgrab", "table":"global.share", "json": true}'

whitelist ​

Store whitelisted accounts for a campaign

  • Code: ultra.rgrab
  • Table: whitelist
  • Scope: name
  • Key: wallet_id
  • Data
FieldsTypeDescription
wallet_itstd::vector<uint8_t>Available token supply
pointsuint64_tUser's campaign points
  • cleos Query Example
shell
cleos get table ultra.rgrab <CAMPAIGN> whitelist
  • curl query example
shell
curl <NODEOS_API_IP>/v1/chain/get_table_rows -X POST -d '{"scope":"<CAMPAIGN>", "code":"ultra.rgrab", "table":"whitelist", "json": true}'