Related API: Relevant owners
Fetching relevant holders for a coin
The API identifies relevant users on Farcaster who hold the same coin, based on the users followed by the viewer. The API works across EVM (Ethereum, Base, etc.) and Solana networks.Overview
Thefetch-relevant-fungible-owners
API endpoint allows you to retrieve a list of relevant users who own a specific fungible token. This is particularly useful for applications that want to display social connections around token ownership.
Key Features
- Network Support: EVM + Solana
- Viewer Context: The API customizes the response based on the
viewer_fid
, respecting the viewer’s mutes and blocks. - Relevance: Returns users from the network who are most relevant to the viewer
API Endpoint
Endpoint
Parameters
-
contract_address (string, required): The contract address of the fungible asset.
- Example:
0x0db510e79909666d6dec7f5e49370838c16d950f
- Example:
-
networks (enum string): Network to fetch tokens from.
- Example:
["base"]
- Example:
-
viewer_fid (integer, required): The FID of the user to customize this response for. This will also return a list of owners that respects this user’s mutes and blocks.
- Example:
194
- Example:
Response
-
200 OK: Successful response containing relevant fungible owners.
- top_relevant_owners_hydrated: An array of user objects representing the top relevant owners.
- all_relevant_owners_dehydrated: An array of user objects representing all relevant owners.
- 400 Bad Request: The request was invalid, often due to missing or incorrect parameters.
Example Request
Example Response
Implementation Example
To implement this API call in a JavaScript environment using the Neynar SDK, follow the steps below:1
Initialize the Neynar Client
2
Fetch Relevant Fungible Owners