Lum0x SDK
  • Lum0x-sdk
    • Getting started
    • Examples
      • Case 1 : Find my Fan
      • Case 2: Fetch user's Moxie earning
      • Case 3: Raffle events among the filtered casts
      • How to Deploy a Project with Vercel
    • FarcasterUser
      • Search for Usernames
      • Fetch users based on FIDs
      • Fetch power user objects
      • Fetches users based on Eth or Sol addresses
      • Lookup a user by custody-address
      • Retrieve all channels that a given fid follows
      • Get User Information by username
      • Get Recent Users
    • FarcasterCast
      • Retrieve cast for a given hash or Warpcast URL
      • Retrieve casts for a given user
      • Gets information about an array of casts
      • Retrieve the conversation for a given cast
      • Get Recent Casts
    • FarcasterFeed
      • Retrieve casts based on filters
      • Retrieve trending casts
    • FarcasterReaction
      • Fetches reactions for a given user
      • Fetches reactions for a given cast
    • FarcasterFollowers
      • Retrieve followers for a given user
      • Retrieve relevant followers for a given user
      • Retrieve a list of users followed by a user
    • FarcasterStorage
      • Fetches storage allocations for a given user
      • Fetches storage usage for a given user
    • FarcasterFname
      • Check if a given fname is available
    • FarcasterMute
      • Get fids that a user has muted
    • FarcasterChannel
      • Retrieve all channels with their details
      • Search for channels based on id or name
      • (Bulk) Retrieve channels by id or parent_url
      • Retrieve channel details by id or parent_url
      • Retrieve followers for a given channel
      • Get channels that a user is active in
      • Check If User Follows Channel
      • Retrieve trending channels based on activity
    • FarcasterNotification
      • Retrieve notifications for a given user
    • FarcasterMoxie
      • Retrieve Moxie earning status
      • Retrieve FarScore and FarRank
      • Retrieve Moxie airdrop claim status
      • Retrieve Moxie earning details for cast.
      • Retrieve Moxie earning details for reply.
      • Retrieve Moxie earning details for cast by fid.
      • Retrieve Moxie earning details for reply by fid.
      • Retrieve Moxie earning details from channel cast.
Powered by GitBook
On this page
  • Overview
  • Parameters
  • Usage
  • Response
  • Field Description
  1. Lum0x-sdk
  2. FarcasterReaction

Fetches reactions for a given cast

farcasterReaction.getCastReaction

Overview

Fetches reactions for a given cast

Parameters

name
type
required
Note

hash

string

true

ex) "0xfa6e2aad1b1cb8fd7037b93382c68264f77c00be"

types

string

true

"all", "likes" or "recasts"

viewer_fid

number

false

ex) 3

limit

number

false

default: 25, max: 100

cursor

string

false

ex) eyJwYWdlIjoyfQ==

Usage

let res = await Lum0x.farcasterReaction.getCastReaction({
    hash: "0xfa6e2aad1b1cb8fd7037b93382c68264f77c00be",
    types: "all",
    limit: 3
});
console.log(JSON.stringify(res, null, 2));

Response

{
  "reactions": [
    {
      "reaction_type": "like",
      "reaction_timestamp": "2024-07-27T11:29:29.000Z",
      "object": "likes",
      "user": {
        "object": "user",
        "fid": 5303,
        "custody_address": "0x09968c3373b8cf1da068f2568b051775fe190c2e",
        "username": "yukisato.eth",
        "display_name": "Yuki Sato",
        "pfp_url": "https://i.imgur.com/doWaOWv.jpg",
        "profile": {
          "bio": {
            "text": "22y / building smtg onchain and fun /triviatech /jp /tokyowip  /farcon-tokyo"
          }
        },
        "follower_count": 2234,
        "following_count": 649,
        "verifications": [
          "0x3d7863e87afd6cc4bb584c3d07f5deeaa6d26802"
        ],
        "verified_addresses": {
          "eth_addresses": [
            "0x3d7863e87afd6cc4bb584c3d07f5deeaa6d26802"
          ],
          "sol_addresses": []
        },
        "active_status": "inactive",
        "power_badge": true
      }
    },
    {
      "reaction_type": "recast",
      "reaction_timestamp": "2024-06-28T02:51:21.000Z",
      "object": "recasts",
      "user": {
        "object": "user",
        "fid": 373908,
        "custody_address": "0x78a36eb6f6a94929881b143447256d872254708c",
        "username": "fibojustin.eth",
        "display_name": "Justin the Broski 🐹Ⓜ️",
        "pfp_url": "https://i.imgur.com/pXYIggC.jpg",
        "profile": {
          "bio": {
            "text": "I like the concept of Fibonacci - investing @ Fibo Partners // host of /broski // part-time Damster at /degenpad"
          }
        },
        "follower_count": 350,
        "following_count": 577,
        "verifications": [
          "0x97bfd51af4aeeed3966c0149c491cfa08df5f6f2"
        ],
        "verified_addresses": {
          "eth_addresses": [
            "0x97bfd51af4aeeed3966c0149c491cfa08df5f6f2"
          ],
          "sol_addresses": []
        },
        "active_status": "inactive",
        "power_badge": false
      }
    }
  ],
  "cursor": null
}

Reaction Type
Timestamp
Username
Display Name
Profile Picture
Bio
Follower Count
Following Count
Power Badge

Like

2024-07-27T11:29:29

yukisato.eth

Yuki Sato

22y / building smtg onchain and fun /triviatech /jp /tokyowip /farcon-tokyo

2234

649

Yes

Recast

2024-06-28T02:51:21

fibojustin.eth

Justin the Broski

I like the concept of Fibonacci - investing @ Fibo Partners // host of /broski // part-time Damster at /degenpad

350

577

No

Field Description

  • Reaction Type: The type of reaction (e.g., Like, Recast).

  • Timestamp: The time when the reaction occurred.

  • Username: The user's Ethereum address represented as the username.

  • Display Name: The user's display name.

  • Profile Picture: The user's profile picture.

  • Bio: A brief introduction about the user.

  • Follower Count: The number of followers the user has.

  • Following Count: The number of users the person is following.

  • Power Badge: Whether the user holds a power badge (Yes/No).

PreviousFetches reactions for a given userNextFarcasterFollowers

Last updated 9 months ago