Multiple POAPs
Learn how to fetch the list of common POAP holders or event attendees of multiple POAPs.
Last updated
Was this helpful?
Learn how to fetch the list of common POAP holders or event attendees of multiple POAPs.
Last updated
Was this helpful?
With , Airstack finds the intersection of common holders of multiple POAPs in the following order:
Filtering POAP holders on the 1st outermost query
Comparing POAP holders of 1st outermost query against the POAP holders on 2nd outermost query
Comparing POAP holders of the 1st and 2nd outermost query against the POAP holders on the 3rd outermost query
Comparing POAP holders of 1st, 2nd, ..., nth outermost query against the POAP holders on (n + 1)-th outermost query
Since the number of objects returned in the responses will be dependent on the number of POAP holders on the 1st outermost query, it's most efficient that you have the POAP with the least amount of holders on the 1st outermost query.
All the common holders' addresses will be returned inside the innermost owner.addresses
field.
To get the list of all holders in a flat array, use the following format function:
The final result will the the list of all common holders in an array:
Fetching common holders for more than 2 POAPs works the same way as fetching only 2 POAPs with the addition of more POAP event ID parameters and additional nesting as shown below:
All the common holders' addresses will be returned inside the innermost owner.addresses
field.
You can fetch the common holders of two given POAP event IDs, e.g. & :
If you have any questions or need help regarding fetching holders or attendees of multiple POAPs, please join our Airstack's group.