Skip to main content

Kodex ENS Subgraph Examples

Sample Queries

Below are some sample queries to help you get started with the modified Kodex ENS Subgraph.

You can build your own queries using a GraphQL Explorer and enter your endpoint to limit your queries to the exact data desired.

All Kodex registrations

Description: Get all registrations performed through Kodex

query KodexRegistrations {
registrations(where: {
kodex: true
}) {
labelName
kodex
registrationDate
expiryDate
cost
}
}

All Kodex registrations after a specific date

Description: Get all registrations performed through Kodex after a certain date

query KodexRegistrationsAfterDate(
$registrationDate: BigInt = "1659792192"
) {
registrations(where: {
kodex: true,
registrationDate_gte: $registrationDate
}) {
labelName
kodex
registrationDate
expiryDate
cost
}
}
note

The first registration containing the appended calldata happened at 1659792192 (UNIX seconds).