
Swift GraphQL: https://www.swift-graphql.com/docs
ENS Subgraph: https://github.com/ensdomains/ens-subgraph
Input:
query getNames($id: ID!, $expiryDate: Int) {
account(id: $id) {
registrations(first: 1000, where: {expiryDate_gt: $expiryDate}) {
registrationDate
expiryDate
domain {
id
labelName
labelhash
name
isMigrated
parent {
name
id
}
}
}
domains(first: 1000) {
id
labelName
labelhash
name
isMigrated
parent {
name
id
}
createdAt
}
}
}
Variables:
- id: ETH address
- expiryDate: Unix Timestamp, current one minus 3 months
{"id":"0x18deee9699526f8c8a87004b2e4e55029fb26b9a","expiryDate":1662107562}