Guides

Get mutual POAPs

The mutual POAPs endpoint allows you to retrieve information about POAPs (Proof of Attendance Protocol) that are mutual between two users. A mutual POAP is a POAP that both users have earned by attending the same event.

Request

MutualPoapsQueryRequest

Invocation

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

query MutualPoaps($request: MutualPoapsQueryRequest!) {
  result: mutualPoaps(request: $request) {
    items {
      ...PoapEvent
    }
    pageInfo {
      ...PaginatedResultInfo
    }
  }
}

Response

Paginated result with PoapEvents