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 from channel cast.

farcasterMoxie.getEarningDetailsFromChannelCast

Overview

Retrieve Moxie earning details from channel cast.

Parameters

name
type
required
Note

root_parent_url

string

true

ex) "https://warpcast.com/~/channel/degenpad"

cursor

string

false

ex) eyJwYWdlIjoyfQ==

Usage

let res = await Lum0x.farcasterMoxie.getEarningDetailsFromChannelCast({
    root_parent_url: "https://warpcast.com/~/channel/degenpad"
});
console.log(JSON.stringify(res, null, 2));

Response

{
    "data": {
      "FarcasterCasts": {
        "Cast": [
          {
            "hash": "0x953eb22088e874ee06480b7999355e8f1f3e2844",
            "moxieEarningsSplit": [
              {
                "earnerType": "CREATOR",
                "earningsAmount": 0.00003946068,
                "earningsAmountInWei": "39460680000000"
              },
              {
                "earnerType": "NETWORK",
                "earningsAmount": 0.00000563724,
                "earningsAmountInWei": "5637240000000"
              },
              {
                "earnerType": "CHANNEL_FANS",
                "earningsAmount": 0.00001127448,
                "earningsAmountInWei": "11274480000000"
              }
            ],
            "rootParentUrl": "https://warpcast.com/~/channel/degenpad"
          },
          {
            "hash": "0xe2a90c10755e8334d2e6ff1f3c234fde86f519d4",
            "moxieEarningsSplit": [
              {
                "earnerType": "CREATOR",
                "earningsAmount": 0.135145523653,
                "earningsAmountInWei": "135145523653000020"
              },
              {
                "earnerType": "NETWORK",
                "earningsAmount": 0.019306503379,
                "earningsAmountInWei": "19306503379000000"
              },
              {
                "earnerType": "CHANNEL_FANS",
                "earningsAmount": 0.038613006758,
                "earningsAmountInWei": "38613006758000000"
              }
            ],
            "rootParentUrl": "https://warpcast.com/~/channel/degenpad"
          },
          {
            "hash": "0x627326a7f30ef59efed6441b69ec252ef252ddf6",
            "moxieEarningsSplit": [
              {
                "earnerType": "CREATOR",
                "earningsAmount": 737.7588752488849,
                "earningsAmountInWei": "737758875248885000000"
              },
              {
                "earnerType": "NETWORK",
                "earningsAmount": 147.551775049777,
                "earningsAmountInWei": "147551775049777000000"
              },
              {
                "earnerType": "CREATOR_FANS",
                "earningsAmount": 295.103550099554,
                "earningsAmountInWei": "295103550099554000000"
              },
              {
                "earnerType": "CHANNEL_FANS",
                "earningsAmount": 295.103550099554,
                "earningsAmountInWei": "295103550099554000000"
              }
            ],
            "rootParentUrl": "https://warpcast.com/~/channel/degenpad"
          },
          {
            "hash": "0xee2f775f427ebbeb168c509542c0eae8f8232bcc",
            "moxieEarningsSplit": null,
            "rootParentUrl": "https://warpcast.com/~/channel/degenpad"
          },
          {
            "hash": "0x868f3cf6121752a967897a5bace091debc46a8da",
            "moxieEarningsSplit": [
              {
                "earnerType": "NETWORK",
                "earningsAmount": 0.000019712346,
                "earningsAmountInWei": "19712346000000"
              },
              {
                "earnerType": "CREATOR",
                "earningsAmount": 0.000137986422,
                "earningsAmountInWei": "137986422000000"
              },
              {
                "earnerType": "CHANNEL_FANS",
                "earningsAmount": 0.000039424692,
                "earningsAmountInWei": "39424692000000"
              }
            ],
            "rootParentUrl": "https://warpcast.com/~/channel/degenpad"
          },
          {
            "hash": "0x1c8b9b5b0257df169f71097073594a61405bb5ae",
            "moxieEarningsSplit": [
              {
                "earnerType": "CHANNEL_FANS",
                "earningsAmount": 0.400548648576,
                "earningsAmountInWei": "400548648576000000"
              },
              {
                "earnerType": "NETWORK",
                "earningsAmount": 0.200274324288,
                "earningsAmountInWei": "200274324288000000"
              },
              {
                "earnerType": "CREATOR",
                "earningsAmount": 1.401920270016,
                "earningsAmountInWei": "1401920270016000000"
              }
            ],
            "rootParentUrl": "https://warpcast.com/~/channel/degenpad"
          }
        ],
        "pageInfo": {
          "nextCursor": "NTA="
        }
      }
    }
  }
hash
earnerType
earningsAmount
earningsAmountInWei
rootParentUrl

0x953eb22088e874ee06480b7999355e8f1f3e2844

CREATOR

0.00003946068

39460680000000

0x953eb22088e874ee06480b7999355e8f1f3e2844

NETWORK

0.00000563724

5637240000000

0x953eb22088e874ee06480b7999355e8f1f3e2844

CHANNEL_FANS

0.00001127448

11274480000000

0xe2a90c10755e8334d2e6ff1f3c234fde86f519d4

CREATOR

0.135145523653

135145523653000020

0xe2a90c10755e8334d2e6ff1f3c234fde86f519d4

NETWORK

0.019306503379

19306503379000000

0xe2a90c10755e8334d2e6ff1f3c234fde86f519d4

CHANNEL_FANS

0.038613006758

38613006758000000

0x627326a7f30ef59efed6441b69ec252ef252ddf6

CREATOR

737.758875248885

737758875248885000000

0x627326a7f30ef59efed6441b69ec252ef252ddf6

NETWORK

147.551775049777

147551775049777000000

0x627326a7f30ef59efed6441b69ec252ef252ddf6

CREATOR_FANS

295.103550099554

295103550099554000000

0x627326a7f30ef59efed6441b69ec252ef252ddf6

CHANNEL_FANS

295.103550099554

295103550099554000000

0xee2f775f427ebbeb168c509542c0eae8f8232bcc

-

-

-

0x868f3cf6121752a967897a5bace091debc46a8da

NETWORK

0.000019712346

19712346000000

0x868f3cf6121752a967897a5bace091debc46a8da

CREATOR

0.000137986422

137986422000000

0x868f3cf6121752a967897a5bace091debc46a8da

CHANNEL_FANS

0.000039424692

39424692000000

0x1c8b9b5b0257df169f71097073594a61405bb5ae

CHANNEL_FANS

0.400548648576

400548648576000000

0x1c8b9b5b0257df169f71097073594a61405bb5ae

NETWORK

0.200274324288

200274324288000000

0x1c8b9b5b0257df169f71097073594a61405bb5ae

CREATOR

1.401920270016

1401920270016000000

Field Description

  • hash: The unique identifier for each 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.

  • rootParentUrl: The URL of the channel to which the Cast belongs.

PreviousRetrieve Moxie earning details for reply by fid.

Last updated 9 months ago

Link
Link
Link
Link
Link
Link
Link
Link
Link
Link
Link
Link
Link
Link
Link
Link
Link