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. FarcasterMoxie

Retrieve Moxie earning details for reply.

farcasterMoxie.getReplyEarningDetails

Overview

Retrieve Moxie earning details for a certain reply.

Parameters

name
type
required
Note

cast_hash

string

true

ex) "0x10851ca722039c193dd7e7ac8b5fb7479d9cae86"

Usage

let res = await Lum0x.farcasterMoxie.getReplyEarningDetails({
    cast_hash: "0x10851ca722039c193dd7e7ac8b5fb7479d9cae86"
});
console.log(JSON.stringify(res, null, 2));

Response

{
  "data": {
    "FarcasterReplies": {
      "Reply": [
        {
          "hash": "0x10851ca722039c193dd7e7ac8b5fb7479d9cae86",
          "moxieEarningsSplit": [
            {
              "earnerType": "NETWORK",
              "earningsAmount": 52.57858184946,
              "earningsAmountInWei": "52578581849460000000"
            },
            {
              "earnerType": "CREATOR",
              "earningsAmount": 368.05007294622,
              "earningsAmountInWei": "368050072946220000000"
            },
            {
              "earnerType": "CREATOR_FANS",
              "earningsAmount": 105.15716369892,
              "earningsAmountInWei": "105157163698920000000"
            }
          ]
        }
      ]
    }
  }
}
hash
earnerType
earningsAmount
earningsAmountInWei

0x10851ca722039c193dd7e7ac8b5fb7479d9cae86

NETWORK

52.57858184946

52578581849460000000

0x10851ca722039c193dd7e7ac8b5fb7479d9cae86

CREATOR

368.05007294622

368050072946220000000

0x10851ca722039c193dd7e7ac8b5fb7479d9cae86

CREATOR_FANS

105.15716369892

105157163698920000000

Field Description

  • hash: The unique identifier for the Reply, represented as a hash value on the blockchain.

  • moxieEarningsSplit: Information on the earnings distribution for the Reply.

  • earnerType: The entity receiving the earnings (e.g., NETWORK, CREATOR, CREATOR_FANS).

  • earningsAmount: The amount of earnings received by the entity (in Ether).

  • earningsAmountInWei: The earnings amount received by the entity expressed in Wei.

PreviousRetrieve Moxie earning details for cast.NextRetrieve Moxie earning details for cast by fid.

Last updated 9 months ago