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.

Last updated