Farcaster Reads
Use the FDK to make reads from the Farcaster Network
These methods can be used to view casts, channels and users. All of them require a PinataFDK initialization with a Pinata JWT.
getCasts
With the getCasts
method you can view a paginated list of casts on the Farcaster Network.
Params
- pageToken - A pagination token to view the next page of casts. (Optional)
Example
Response
getCastByHash
With the getCastByHash
method you can view a specific cast on the Farcaster Network.
Params
- hash - The specific hash of the desired cast.
Example
Response
getUsers
With the getUsers
method you can view a paginated list of users on the Farcaster Network.
Params
- pageToken - A pagination token to view the next page of users. (Optional)
Example
Response
getUserByFid
With the getUserByFid
method you can view a specific user on the Farcaster Network.
Params
- fid - The specific fid of the desired user.
Example
Response
getChannelsFollowing
With the getChannelsFollowing
method you can view a paginated list of the channels a specific user is following on the Farcaster Network.
Params
- fid - The specific fid of the desired user.
- pageToken - A pagination token to view the next page of channels followed. (Optional)
Example
Response
getChannelFollowingStatus
With the getChannelFollowingStatus
method you can check if a specific user follows a specific channel on the Farcaster Network.
Params
- fid - The specific fid of the desired user.
- name - The specific name of the desired channel.
Example
Response
getChannels
With the getChannels
method you can view a paginated list of channels on the Farcaster Network.
Params
- pageToken - A pagination token to view the next page of channels. (Optional)
Example
Response
getChannelByName
With the getChannelByName
method you view a specific channel queried by name on the Farcaster Network.
Params
- name - The specific name of the desired channel.
Example
Response
getChannelFollowers
With the getChannelFollowers
method you can view a paginated list of a specific channel’s followers on the Farcaster Network.
Params
- name - The specific name of the desired channel.
- pageToken - A pagination token to view the next page of channel followers. (Optional)