Socials API Examples

Get the Ethereum connected address for Farcaster user betashop, along with the profile creation date and recovery address
query MyQuery {
  Socials(input: {filter: {profileName: {_eq: "betashop"}}, blockchain: ethereum}) {
    Social {
      userAssociatedAddresses
      userCreatedAtBlockNumber
      userCreatedAtBlockTimestamp
      userRecoveryAddress
    }
  }
}
Check if this Ethereum address "0x74232bf61e994655592747e20bdf6fa9b9476f79" has a Farcaster account
query MyQuery {
Socials(
input: {filter: {userAssociatedAddresses: {_eq: "0x74232bf61e994655592747e20bdf6fa9b9476f79"}}, blockchain: ethereum}
) {
Social {
profileCreatedAtBlockNumber
profileCreatedAtBlockTimestamp
profileName
profileTokenId
profileTokenUri
userId
}
}
}
For Farcaster user betashop, shnoodles.lens, vitalik.eth show their user id and registration date
query MyQuery {
  betashop: Socials(input: {filter: {identity: {_eq: "fc_fname:betashop"}}, blockchain: ethereum}) {
    Social {
      dappName
      userId
      userCreatedAtBlockTimestamp
    }
  }
  shnoodlesLens: Socials(input: {filter: {identity: {_eq: "shnoodles.lens"}}, blockchain: ethereum}) {
    Social {
      dappName
      userId
      userCreatedAtBlockTimestamp
    }
  }
  vitalikEth: Socials(input: {filter: {identity: {_eq: "vitalik.eth"}}, blockchain: ethereum}) {
    Social {
      dappName
      userId
      userCreatedAtBlockTimestamp
    }
  }
}

Last updated

#300: add-user-details

Change request updated