Skip to main content
Fetching an addresses’ connected fid with Neynar’s APIsNeynar’s Parquet FilesNeynar’s Indexer Service or Neynar’s Hosted Database is easy, but until now that data wasn’t accessible to smart contracts on any L2s. Now, on the Base Mainnet and Sepolia testnet, smart contracts can query the fid linked to any ETH address.

The Contract

The Interface

The V4 interface is quite simple:
If the getFid call returns 0there is no verification for that address. If you can spare the gas and would like us to know that you are using our contract, please use getFidWithEvent. A simple example of a HelloWorld contract:

The Future

This experiment will see what we can unlock by bringing more Farcaster data on-chain. If you build something using this, please reach out. We want to hear what you’re building and see how we can make it easier.

Further reading

Add verifications to Farcaster user profile via API

Create verification on Farcaster Hub