Snippets & Examples
query {
heroes {
tokenId # The Hero's Token ID
sender # The wallet address this hero belongs to.
owner # Which task the hero is currently at. Is set to wallet address when idle.
isAlive # Is the hero alive? (permadeath quests)
isStaked # Is the hero's soul binded into the game?
strength # Stats
agility
vitality
endurance
intelligence
will
totalAttributes
heroClass # 1 = Warrior, 2 = Assassin, 3 = Mage, 4 = Ranger
exp # Total accumulated EXP for a hero.
level # The hero's current level.
bonusUpgradeChance # Bonus % that will be applied to the next upgrade.
questAttempts # The number of daily quest attempts left.
maxQuestAttempts # The max number of quest attempts.
}
}
# Possible Filters:
# id, tokenId, sender, owner
# To query for heroes currently busy in an assignment:
query {
assignmentExpeditions {
assignmentId # Which assignment the hero is busy with
tokenId # The token ID of the Hero that is in the assignment
startedBy # The wallet address that started the assignment
startedAt # What time was the assignment started
}
}
# Possible Filters:
# id, assignmentId, tokenId, startedBy
# To query for assignment claim history
query {
assignmentHistory {
assignmentId # Which assignment was this claimed from?
tokenId # Which hero was the one who was working?
startedAt # What time did the hero start the assignment?
claimedAt # What time did the claim happen? (is null if invalid)
claimedBy # Who claimed for this hero? (is null if invalid)
medalsReward # The $MEDALS rewards for this assignment.
elleriumReward # The $ELLERIUM rewards for this assignment.
isQuit # Is the hero quit the assignment? (back to idle)
}
}
# Possible Filters:
# id, tokenId, assignmentId, claimedBy
query {
quests {
region # Which region this quest belongs to
name # The name of this quest
type # The quest type: Fight/Exploration/Boss
heroesRequired # How many heroes are required on this quest
concurrentHeroes # How many heroes will make a move at once
entryFeeType # The entry fee type (could be medals/items)
entryFee # The entry fee required ($MEDALS cost/item id;quantity)
willKeepRewards # Will the hero keep rewards if defeated?
isPermanentDeath # Will the hero die permanently if defeated?
enemies # List of possible encounters.
canRewardMedals # Can $MEDALS be rewarded?
canRewardEllerium # Can $ELLERIUM be rewarded?
canRewardEquipment # Can equipment be rewarded?
canRewardRelics # Can drops/items be rewarded?
}
}
# Possible Filters:
# id, name, type, region
# To query for a list of quests instances (quest history/in progress)
query {
questInstances {
questId # The id of the quest.
name # The name of the quest.
challengedAt # What time was the quest started?
challengerAddress # The wallet address that started the quest.
isFinished # Is the quest ongoing or finished?
isVictory # Is the quest a victory?
battleLogs { # Battle Logs. Omit if unnecessary.
log {
monsterAttack {
monsterId
activeHeroIndex
damage
message
}
playerAttack {
tokenId
enemyIndex
damage
message
}
encounter {
monsterId
enemyIndex
message
}
statusEffect {
status
turns
effectValue
message
}
}
}
rewardInstances { # Rewards. Omit if unnecessary.
reward {
medals
ellerium
exp
relics {
id
quantity
}
}
}
monsterInstances { # Monsters encounted. Omit if unnecessary.
monsterId
encounterIndex
monsterName
attackType
strength
agility
vitality
endurance
intelligence
will
attack
defence
resistance
hp
maxHp
}
heroInstances { # Heroes sent on this quest. Omit if unnecessary.
id
ownerId
teamIndex
tokenId
heroName
heroClass
attackType
level
exp
requiredExp
strength
agility
vitality
endurance
intelligence
will
totalAttributes
attack
defence
resistance
hp
maxHp
isAlive
isPermanentlyDead
}
}
}
# Possible Filters:
# id, questId, name, challengerAddress
Event Rewards
query {
offchainRewards {
walletAddress # The recipient of the reward
reason # Why the reward was issued.
medals # The medals value of this reward.
ellerium # The ellerium value of this reward.
}
}
# Possible Filters:
# id, walletAddress
Users
query {
users {
id # The user's ID
walletAddress # The user's wallet address.
medals # Amount of $MEDALS a user has (WEI).
ellerium # Amount of $ELM user has (WEI).
craftingExp # Amount of Crafting EXP a user has.
}
}
# Possible Filters:
# id, walletAddress
Single Sided Staking Leaderboards
query {
stakingLeaderboard {
id # The ID of the stake
walletAddress # Who staked?
token # What was staked
amount # Amount staked
unclaimedRewards # Amount left to claim
unlockAt # When the stake unlocks
ranking # The user's stake ranking
}
}
# Possible Filters:
# id, walletAddress
Scroll Results
query {
scrolls {
id # The ID of the scroll log
relicId # The relic ID of the scroll used
relicEffects { # The traits affected by this scroll.
strength
agility
vitality
endurance
intelligence
will
totalAttributes
}
walletAddress # The address that used this scroll
tokenId # The hero tokenId this scroll was used on
isReverted # Was this reverted?
}
}
# Possible Filters:
# id, relicId, tokenId, walletAddress
Crafting Logs
query {
craftingLogs {
id # The ID of this crafting attempt.
walletAddress # The address that crafted.
recipeId # The ID of the recipe used in this attempt.
isProtected # Was this crafting attempt protected?
attempts # How many attempts were made.
passedAttempts # How many attempts passed.
cost # Total $ELM cost.
rewards { # The relics gained from this craft.
id
quantity
}
}
}
# Possible Filters:
# id, recipeId, walletAddress
Last modified 8mo ago