Profiles
Queries
profile
profileReturns a single Profile according to its id.
profile(id: ID!): Profileprofiles
profilesReturns multiple Profiles according to the arguments passed.
profiles(
skip: Int
first: Int
orderBy: ProfileOrderBy
orderDirection: OrderDirection
where: ProfileFilter
): [Profile]!Object Types
Profile
ProfileThe Profile object type contains the following fields:
Basic Information
id:ID- the Profile's0x-style wallet address expressed as aStringowner:String- the Profile's0x-style wallet address (same asid)name:String- the in-game name associated with the Profilecreated:Int- the UNIX timestamp of the Profile's creation; may returnnulldepending 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 versionheroId: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; returns0for built-in options,1for Hero pfps, and2for BAYC pfps.nftId:Int- the specific NFT/image ID corresponding to thecollectionId(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
}
}Last updated
