Raw.BroadcastRevenueBalances

Raw.BroadcastRevenueBalances

Describes channel ad revenue balances.

broadcastRevenueBalances#c3ff71e7 flags:# withdrawal_enabled:flags.0?true current_balance:long available_balance:long overall_revenue:long = BroadcastRevenueBalances;
export namespace Raw {
  export class BroadcastRevenueBalances {
    constructor(params: {
      withdrawalEnabled?: boolean;
      currentBalance: bigint;
      availableBalance: bigint;
      overallRevenue: bigint;
    }) {}
  }
}
🚫

This is a types constructor, you can’t use it as method when call invoke.

Layer: 198
Constructor ID: 0xc3ff71e7

Property

  • withdrawalEnabled : boolean or undefined

    If set, the available balance can be withdrawn.

  • currentBalance : bigint

    Amount of not-yet-withdrawn cryptocurrency.

  • availableBalance : bigint

    Amount of withdrawable cryptocurrency, out of the currently available balance (availableBalance <= currentBalance).

  • overallRevenue : bigint

    Total amount of earned cryptocurrency.