Guides

Get profile's POAPs

The profile's POAPs endpoint allows you to retrieve information about POAPs (Proof of Attendance Protocol) owned by a specific profile. POAPs are unique tokens representing attendance at various events.

Request

UserPoapsQueryRequest

Invocation

const result = await client.poaps.fetch({
  for: "0x04",
});
fragment PoapEvent on PoapEvent {
  id
  fancyId
  name
  eventUrl
  imageUrl
  country
  city
  description
  year
  startDate
  endDate
  expiryDate
  virtualEvent
  fromAdmin
  animationUrl
  eventTemplateId
  privateEvent
}

fragment PoapToken on PoapToken {
  tokenId
  eventId
  owner {
    ...NetworkAddress
  }
  layer
  created
  migrated
  event {
    ...PoapEvent
  }
}

query Poaps($request: UserPoapsQueryRequest!) {
  result: poaps(request: $request) {
    items {
      ...PoapToken
    }
    pageInfo {
      ...PaginatedResultInfo
    }
  }
}

Response

Paginated result with PoapTokens