Heroes
Queries
hero
hero
Returns a single Hero according to its id
.
heroes
heroes
Returns multiple Heroes according to the arguments passed.
Object Types
Hero
Hero
The Hero
object type contains the following fields:
Basic Information
id
:ID
- the Hero's ID. Crystalvale Hero IDs are padded by1000000000000
(one trillion), and Serendale (Klaytn) IDs are padded by2000000000000
(two trillion).numberId
:String
- deprecated, asid
now sorts asInt.
normalizedId
:String
- the ID that appears in-game without realm padding.owner
:Profile
- the current owner of the Hero. Heroes held in the Tavern contract will still return the Profile of their owner.previousOwner
:Profile
- the most immediate recent owner of the Hero. May returnnull
if the Hero has not changed wallets since the Perilous Journey.creator
:Profile
- currently not in use and will returnnull
network
:String
- the current network of the Hero; returnshmy
,dfk
, orkla
originRealm
:String
- the origin realm of the Hero; returnsSER
,CRY
, orSER2
statGenes
:String
- the encrypted string of the Hero's dominant and recessive stat genesvisualGenes
:String
- the encrypted string of the Hero's dominant and recessive visual genesrarity
:Int
- maps from0
(Common) to4
(Mythic)shiny
:Boolean
generation
:Int
firstName
:Int
- parsed by the Hero First Name tables according togender
lastName
:Int
- parsed by the Hero Last Name tableshinyStyle
:Int
- ranging from0
to13
mainClassStr
:String
subClassStr
:String
professionStr
:String
Summoning Details
summonedTime
:Int
- the Unix timestamp of the Hero's summoningnextSummonTime
:Int
- the Unix timestamp of the Hero's next available summonsummonerId
:Hero
- theHero
object of the Hero's SummonerassistantId
:Hero
- theHero
object of the Hero's Assistant Summonersummons
:Int
- the number of summons used by the HeromaxSummons
:Int
- the maximum number of summons by the Hero; returns11
for Gen0 HeroessummonsRemaining
:Int
- the number of summons remaining for the Hero; returns11
for Gen0 HeroesdarkSummoned
:Bool
- whether the Hero was Dark Summoned or notdarkSummonLevels
:Int
- the maximum level a Hero can attain from Dark Summoning level boosts (Default: 1 for Dark Summoned Heroes; 0 for non-DS Heroes)
Hero State
staminaFullAt
:Int
- the Unix timestamp when the Hero's Stamina will be fullhpFullAt
:Int
- the Unix timestamp when the Hero's HP will be full; not currently in usempFullAt
:Int
- the Unix timestamp when the Hero's MP will be full; not currently in uselevel
:Int
xp
:Int
- the Hero's current XP toward their next levelcurrentQuest
:String
- the contract address of the Hero's current questsp
:Int
- not currently in usestatus
:String
- not currently in use
Stats and Stat Growth
Hero Stats
strength
:Int
intelligence
:Int
wisdom
:Int
luck
:Int
agility
:Int
vitality
:Int
endurance
:Int
dexterity
:Int
hp
:Int
mp
:Int
stamina
:Int
- the Hero's maximum stamina
Primary Stat Growth
Stat Growth, HP Growth, and MP Growth Values are returned as integers representing percentage values to two decimal places of precision (e.g. 1725
is 17.25%). To convert these values to percents represented in decimals, divide by 10000 (ten thousand).
strengthGrowthP
:Int
intelligenceGrowthP
:Int
wisdomGrowthP
:Int
luckGrowthP
:Int
agilityGrowthP
:Int
vitalityGrowthP
:Int
enduranceGrowthP
:Int
dexterityGrowthP
:Int
Secondary Stat Growth
strengthGrowthS
:Int
intelligenceGrowthS
:Int
wisdomGrowthS
:Int
luckGrowthS
:Int
agilityGrowthS
:Int
vitalityGrowthS
:Int
enduranceGrowthS
:Int
dexterityGrowthS
:Int
HP and MP Growth
hpSmGrowth
:Int
hpRgGrowth
:Int
hpLgGrowth
:Int
mpSmGrowth
:Int
mpRgGrowth
:Int
mpLgGrowth
:Int
Profession Skills
Profession Skill values are stored as integers and should be divided by 10 to return the value on the back of the Hero card.
mining
:Int
gardening
:Int
foraging
:Int
fishing
:Int
Stat Genes
hasValidCraftingGenes
:Bool
- whether the Hero has valid Crafting Genes (e.g.StatsUnknown1
andStatsUnknown2
are rolled correctly for crafting)
The API only displays the Hero's dominant genes. Recessive stat genes must be parsed from the Hero's statGenes
string.
mainClass
:Int
subClass
:Int
profession
:Int
passive1
:Int
passive2
:Int
active1
:Int
active2
:Int
statBoost1
:Int
statBoost2
:Int
statsUnknown1
:Int
element
:Int
statsUnknown2
:Int
Visual Genes
The API only displays the Hero's dominant genes. Recessive visual genes must be parsed from the Hero's visualGenes
string.
gender
:Int
headAppendage
:Int
backAppendage
:Int
background
:Int
hairStyle
:Int
hairColor
:Int
visualUnknown1
:Int
eyeColor
:Int
skinColor
:Int
appendageColor
:Int
backAppendageColor
:Int
visualUnknown2
:Int
Auction Details
assistingAuction
:Auction
- if the Hero is currently placed for Hire, returns the correspondingAuction
assistingPrice
:String
- if the Hero is currently placed for Hire, returns the Hire price in weisaleAuction
:Auction
- if the Hero is currently placed for Sale, returns the correspondingAuction
salePrice
:String
- if the Hero is currently placed for Sale, returns the Sale price in weiprivateAuctionProfile
:Profile
- if the Hero is currently placed for Private Sale or Hire, returns the correspondingProfile
of the future buyer/renter
Perilous Journey
pjStatus
:String
- the Perilous Journey status of the Hero; returnsnull
,SURVIVED
,ON_JOURNEY
, orDIED
pjLevel
:Int
- the Level of the Hero when & if it was sent on the Perilous JourneypjOwner
:Profile
- theProfile
of the player who sent the Hero on the Perilous JourneypjClaimStamp
:Int
- the Unix timestamp of the Hero's Perilous Journey claim transaction
Examples
Example 1
All Heroes owned by an individual user:
Example 2
All Level 1, Gen0 Heroes currently located on the Harmony network:
Example 3
All Heroes with at least 23 Endurance that died on the Perilous Journey
Example 4
All Paladins currently for Sale that were summoned with a Might Enhancement Stone (assumes that Primary Strength Growth rate is at least 83%), sorted by ascending Sale Price:
Because Auction
and PetAuction
queries can't filter on subfields of tokenId
, use complex Heroes
and Pets
queries with a salePrice_not: null
filter instead.
Example 5
The Top 3 Heroes of each profession ordered by that profession skill, using aliases and fragments:
Last updated