LogoLogo
  • DFK Developer Docs
  • Contracts
    • Exchanges
      • The Trader
      • The Bazaar
    • Sales & Rentals
      • Hero Auction
      • Hero Rental
      • Equipment Auction
      • Pet Auction
      • Land Auction
    • Summoning
      • Hero Summoning
        • Dark Summoning
      • Pet Hatching
    • Meditation Circle
    • Quests
      • Quest Core
      • Historical Contracts
        • Quest Core
        • Profession Quests
        • Training Quests
    • Void Hunts
    • Patrols
    • PVP Combat
    • Influence System
    • Gardens
      • Master Gardener
    • Jeweler 2.0
      • Power-Ups
      • Jeweler 1.0
    • Profiles
    • DFK Duel
      • Previous Seasons
      • Raffle Master
    • Events
      • Gen0 Reroll
      • Gene Reroll
      • Perilous Journey
    • Bridging
      • Hero Bridge (Synapse)
      • Hero Bridge (LayerZero)
      • Equipment Bridge (Synapse)
      • Equipment Bridge (LayerZero)
      • Item Bridge V2
        • Item Bridge V1 (Deprecated)
      • Gaia's Tear Bridge
    • Miscellaneous
      • Airdrops
      • Charity
      • Flag Storage
      • Gen0 Airdrop (Harmony)
      • Gen0 Sale (Harmony)
      • Graveyard
      • Locked Token Claim
      • Locked Token Raffle
      • Token Disburse
  • NFTs
    • Heroes
      • HeroV4 (Metis)
    • Equipment
      • Weapons
      • Armor
      • Accessories
      • Shared Equipment Mappings
      • CacheCore
      • Equipment Shop
      • Visage Shop
    • Pets
      • Pet Exchange
    • Lands
  • Tokens
    • Ecosystem Token
    • Power Tokens
    • Governance Tokens
    • Currencies
      • DFK Gold
      • Gaia's Tears
    • Inventory Items
    • Gold Crops
    • Combat Items
    • Miscellaneous Tokens
      • Collectible Items
      • Raffle Tickets
  • Crafting
    • Alchemist
    • Nutritionist
    • Stone Carver
    • Vendor (Item Gold Trader)
  • Collections
    • Runes
    • Pet Eggs
    • Pet Treats
    • Potions & Consumables
      • Item Consumer
      • Potion Migrator
    • Enhancement Stones
    • Attunement Crystals
      • Atonement Crystals
    • Pages of the Eternal Story
  • API
    • Community GraphQL API
      • Getting Started
      • Auctions
      • Bazaar
      • Heroes
      • Pets
      • Profiles
    • Hero Metadata & Image API
    • Pet Metadata & Image API
    • Token Supply API
  • Community Builders
    • Kingdom Building Program
    • Developer Resources
    • Community Projects
  • DFK CHain
    • Getting Started
    • Nodes & Validators
    • Bridged Tokens
    • Ecosystem Partners
      • Covalent API
      • SupraOracles Price Feeds
      • SupraOracles VRF
    • Miscellaneous Contracts
Powered by GitBook
On this page
  • Queries
  • profile
  • profiles
  • Object Types
  • Profile
  • Examples
  1. API
  2. Community GraphQL API

Profiles

PreviousPetsNextHero Metadata & Image API

Last updated 2 years ago

Queries

profile

Returns a single Profile according to its id.

profile(id: ID!): Profile

profiles

Returns multiple Profiles according to the passed.

profiles(
  skip: Int
  first: Int
  orderBy: ProfileOrderBy
  orderDirection: OrderDirection
  where: ProfileFilter
): [Profile]!

Object Types

Profile

The Profile object type contains the following fields:

Basic Information

  • id: ID - the Profile's 0x-style wallet address expressed as a String

  • owner: String - the Profile's 0x-style wallet address (same as id)

  • name: String - the in-game name associated with the Profile

  • created: Int - the UNIX timestamp of the Profile's creation; may return null depending on when the Profile was last updated

Profile Image Fields (Old)

  • picId: Int - the id of the original in-game pfp; deprecated and only used by Profiles that have not been migrated to the newer version

  • heroId: Int - the id of a Hero image chosen as an in-game pfp; deprecated and only used by Profiles that have not been migrated to the newer version

Profile Image Fields (New)

  • collectionId: Int - a mapping of Profile pfp collection options; returns 0 for built-in options, 1 for Hero pfps, and 2 for BAYC pfps.

  • nftId: Int - the specific NFT/image ID corresponding to the collectionId (e.g. Hero ID, BAYC ID)

  • picUri: String - a URI pointing to the pfp image; note that the Hero image URIs are not active

Examples

Example 1

Query a Profile by wallet address

{
  profile(id: "0x2E7669F61eA77F02445A015FBdcFe2DE47083E02") {
    id
    name
    nftId
    collectionId
    picUri
  }
}

Example 2

Query a Profile by in-game Profile name

{
  profiles(where: {name: "FriskyFox"}) {
    id
    name
    nftId
    collectionId
    picUri
  }
}

Example 3

Query all Profiles using a BAYC in-game pfp

{
  profiles(where: {collectionId: 2}) {
    id
    name
    nftId
    collectionId
    picUri
  }
}
arguments