Skip to main content

Onchain Ham Score

Ham scores are assigned to Farcaster users that have contributed to the Ham ecosystem. The algorithm that determines a person's Ham score utilizes onchain and social data points. Ham scores are updated daily. To qualify for a Ham score a farcaster user must hold one of the following in their Farcaster connected wallet mapped on Ham chain.

  • 250,000 $TN100x
  • OR 1 Based LP NFT
  • OR 1 Ham LP NFT
Ham scores returned from the smart contract use 18 decimals. Convert the score by using score / 10 ** 18

Onchain Ham Score Smart Contract

Contract Address: 0xfe105f1c2dd6211c78ea9c9e592aed3659d89cf6

Link to block explorer (verified)

Function Signatures:

fidToHamScore(uint256) to get the Ham score of a given FID

addressToHamScore(address) to get the Ham score of a given address (must be mapped to an FID)

nonce() to get the current nonce

event HamScoreUpdated(uint256 indexed fid, uint256 indexed nonce, uint score) event emitted when a Ham score is updated