Lens

Learn how to use Airstack to universally resolve and reverse resolve Lens Profiles to other web3 identities (Farcaster, ENS, Ethereum address).

Get Lens Profiles from a given user(s)

query GetLens($address: [Identity!]) {
  Socials(
    input: {filter: {identity: {_in: $address}, dappSlug: {_eq: lens_polygon}}, blockchain: ethereum}
  ) {
    Social {
      profileName
      dappName
    }
  }
}

Get the Ethereum address, Farcaster, and ENS from a given Lens profile(s)

query GetAddressOfLens($address: [Identity!]) {
  Socials(input: {filter: {identity: {_in: $address}}, blockchain: ethereum}) {
    Social {
      userAddress
      dappName
      profileName
    }
  }
  Domains(input: {filter: {owner: {_in: $address}}, blockchain: ethereum}) {
    Domain {
      dappName
      name
    }
  }
}

Last updated

#189: add-poaps-use-cases

Change request updated