Airstack Identity API

Airstack Identity API has been integrated throughout all of the GraphQL queries!

You can filter your queries using the identity inputs by passing the following values instead of an EVM 0x address:

Solana Address

You can enter the Solana addresses of a user directly in the owner, address, or identity field:

Sample InputDescription

GJQUFnCu7ZJHxtxeaeskjnqyx8QFAN1PsiGuShDMPsqV

Valid base58 Solana addresses

ENS Domains

You can enter the ENS domains, both on-chain or off-chain (e.g. cb.id or Namestone), directly in the owner, address, or identity field:

Sample InputDescription

vitalik.eth

Plain ENS domain ending in .eth

ens:vitalik.eth

ENS domain with optional ens: prefix

leighton.pooltogether.eth

Off-chain ENS domain from Namestone

yosephks.cb.id

Coinbase ID that is resolved off-chain

Farcaster ID and Name

You can enter Farcaster ID or name directly in the owner, address, or identity field:

Sample InputDescription

fc_fid:5650

Farcaster user ID with required fc_fid prefix

fc_fname:vbuterin

Farcaster user name (not ENS) with required fc_fname prefix

fc_fname:dwr.eth

Farcaster user name (ENS domain) with required fc_fname prefix

Alternatively, you can enter the Farcaster profile name directly in the Socials profileName field.

You can enter all fnames that Farcaster user has, including the one that is not actively used as a profile name. For example, a Farcaster user have multiple fnames: fc_fname:varunsrin.eth and fc_fname:v, then you should be able to use both as an input of any identity field.

Example #1: Show me all NFTs and their images currently being held by Farcaster user name dwr.eth

Try Demo

Code

query ID1 {
  TokenBalances(
    input: {
      filter: {
        owner: { _eq: "fc_fname:dwr" }
        tokenType: { _in: [ERC721, ERC1155] }
      }
      blockchain: ethereum
    }
  ) {
    TokenBalance {
      tokenNfts {
        address
        tokenId
        contentValue {
          image {
            medium
          }
        }
        token {
          name
        }
      }
    }
  }
}

Lens Profile Name and ID

You can enter Lens name directly in the owner, address, or identity field:

Sample InputDescription

lens/@vitalik

V2 Lens handle with namespace lens and handle name vitalik

lens_id:100275

Lens profile ID in decimal format with optional lens_id prefix

lens_id:0x0187b3

Lens profile ID in hexadecimal format with optional lens_id prefix

vitalik.lens

V1 Lens profile name ending in .lens

lens:vitalik.lens

V1 Lens profile name with optional lens prefix

Example#1: Show me all lens/@stani token transfers

Try Demo

Code

query tokenTransfers {
  TokenTransfers(
    input: {
      filter: {
        _or: [{ from: { _eq: "lens/@stani" } }, { to: { _eq: "lens/@stani" } }]
      }
      blockchain: ethereum
    }
  ) {
    TokenTransfer {
      amount
      tokenType
      tokenAddress
      tokenId
    }
  }
}

Last updated

Was this helpful?