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 cast by fid.

farcasterMoxie.getEarningDetailsByFidCast

Overview

Retrieve Moxie earning details for cast by fid.

Parameters

name
type
required
Note

fid

string

true

ex) "721870"

cursor

string

false

ex) eyJwYWdlIjoyfQ==

Usage

let res = await Lum0x.farcasterMoxie.getEarningDetailsByFidCast({
    fid: "721870"
});
console.log(JSON.stringify(res, null, 2));

Response

{
  "data": {
    "FarcasterCasts": {
      "Cast": [
        {
          "hash": "0x2352b34a01b55cdaa6a9157d7e2e6e9d13c23ae7",
          "moxieEarningsSplit": [
            {
              "earnerType": "CREATOR",
              "earningsAmount": 28.473895874683,
              "earningsAmountInWei": "28473895874683003000"
            },
            {
              "earnerType": "NETWORK",
              "earningsAmount": 4.067699410669,
              "earningsAmountInWei": "4067699410669000700"
            },
            {
              "earnerType": "CHANNEL_FANS",
              "earningsAmount": 8.135398821338,
              "earningsAmountInWei": "8135398821338001000"
            }
          ]
        },
        {
          "hash": "0x2cca27cf3270871b290a0c7f35f02bccc550f3f1",
          "moxieEarningsSplit": [
            {
              "earnerType": "CREATOR",
              "earningsAmount": 27.698162797529,
              "earningsAmountInWei": "27698162797529000000"
            },
            {
              "earnerType": "NETWORK",
              "earningsAmount": 3.956880399646999,
              "earningsAmountInWei": "3956880399646999600"
            },
            {
              "earnerType": "CHANNEL_FANS",
              "earningsAmount": 7.913760799293999,
              "earningsAmountInWei": "7913760799293999000"
            }
          ]
        },
        {
          "hash": "0x4e0451dc4fac217eaa39c86f3ae8b8c7174e2356",
          "moxieEarningsSplit": [
            {
              "earnerType": "CREATOR",
              "earningsAmount": 0.000299708811,
              "earningsAmountInWei": "299708811000000"
            },
            {
              "earnerType": "NETWORK",
              "earningsAmount": 0.000033300979,
              "earningsAmountInWei": "33300979000000"
            }
          ]
        },
        {
          "hash": "0xfa6e2aad1b1cb8fd7037b93382c68264f77c00be",
          "moxieEarningsSplit": null
        }
      ],
      "pageInfo": {
        "nextCursor": ""
      }
    }
  }
}
hash
earnerType
earningsAmount
earningsAmountInWei

0x2352b34a01b55cdaa6a9157d7e2e6e9d13c23ae7

CREATOR

28.473895874683

28473895874683003000

0x2352b34a01b55cdaa6a9157d7e2e6e9d13c23ae7

NETWORK

4.067699410669

4067699410669000700

0x2352b34a01b55cdaa6a9157d7e2e6e9d13c23ae7

CHANNEL_FANS

8.135398821338

8135398821338001000

0x2cca27cf3270871b290a0c7f35f02bccc550f3f1

CREATOR

27.698162797529

27698162797529000000

0x2cca27cf3270871b290a0c7f35f02bccc550f3f1

NETWORK

3.956880399647

3956880399646999600

0x2cca27cf3270871b290a0c7f35f02bccc550f3f1

CHANNEL_FANS

7.913760799294

7913760799293999000

0x4e0451dc4fac217eaa39c86f3ae8b8c7174e2356

CREATOR

0.000299708811

299708811000000

0x4e0451dc4fac217eaa39c86f3ae8b8c7174e2356

NETWORK

0.000033300979

33300979000000

0xfa6e2aad1b1cb8fd7037b93382c68264f77c00be

-

-

-

Field Description

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

  • moxieEarningsSplit: Information on the earnings distribution for the Cast (null if there is no earnings distribution information).

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

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

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

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

Last updated 9 months ago