Retrieve Moxie earning details for cast.

farcasterMoxie.getCastEarningDetails

Overview

Retrieve Moxie earning details for a certain cast.

Parameters

name
type
required
Note

cast_hash

string

true

ex) "0x2cca27cf3270871b290a0c7f35f02bccc550f3f1"

Usage

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

Response

{
  "data": {
    "FarcasterCasts": {
      "Cast": [
        {
          "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
earnerType
earningsAmount
earningsAmountInWei

0x2cca27cf3270871b290a0c7f35f02bccc550f3f1

CREATOR

27.698162797529

27698162797529000000

0x2cca27cf3270871b290a0c7f35f02bccc550f3f1

NETWORK

3.956880399646999

3956880399646999600

0x2cca27cf3270871b290a0c7f35f02bccc550f3f1

CHANNEL_FANS

7.913760799293999

7913760799293999000

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.

  • 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 earnings amount received by the entity expressed in Wei.

Last updated