# Neynar: User quality scores for ethereum addresses onchain Source: https://docs.neynar.com/docs/address-user-score-contract Kiwi News: https://news.kiwistand.com/stories/Neynar-User-quality-scores-for-ethereum-addresses-onchain?index=0x67891349f35ff68378bf9a64e9a3dfe9ff646a517f8fa77e3198a59d3f6ddafb8b2da40c Submitted by tim on 2025-01-16 UTC, 2 upvotes, 1 comment ## Summary Neynar has launched onchain user quality scores that smart contracts can query for Ethereum addresses linked to Farcaster profiles, on Base Mainnet and the Sepolia testnet. The scores are meant for cases such as restricting contract interaction from anonymous addresses to high-quality ones, and they extend the user quality scores Neynar already provides offchain. Smart contracts can look up the FID linked to any ETH address and the quality score for that FID. A returned value of 0 means there is no user score for that address, and developers who want Neynar to know they use the contract can call getScoreWithEvent instead. ## Article Neynar User Score Address User Score Contract Get user quality score for an address connected to a Farcaster profile. User scores are particularly useful if anonymous addresses are interacting with your contract and you want to restrict interaction to high quality addresses. Neynar already supports user quality scores offchain (read more in Neynar User Quality Score), this brings them onchain and makes it available to smart contracts. Now, on the Base Mainnet and Sepolia testnet, smart contracts can query the fid linked to any ETH address and the quality score for that FID. Contract Read the Proxy Contract on the Base Explorer (link). This is the upgradeable proxy contract you should use. User score code on the Base Explorer (link). This is an upgradeable implementation contract. There is no state here. This is the code that the proxy contract is currently using. Interface If the getScore call returns 0there is no user score for that address. If you can spare the gas and would like us to know that you are using our contract, please use getScoreWithEvent. Sample use A simple example of a HelloWorld contract: 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 Neynar User Score Number Differences ## Comments **tim**: This is actually really cool! For the Purple writing contest we want to enable those who actively use Farcaster to vote. So my expectation was when I heard that we'd be using Neynar that I have to sign up to get an API key and then query their server. So I'm now positively surprised that I can query the Neynar score directly onchain from Base, which is freshingly simple!