Constructors

Properties

client: Client

Methods

  • Convenience for calling condenser_api.

    Parameters

    • method: string
    • Optionalparams: any[] | {
          [key: string]: any;
      }

    Returns Promise<any>

  • Get the conversion of VESTS to BLURT.

    Parameters

    • VESTS: number

      VESTS value.

    • DGP: DynamicGlobalProperties

      Dynamic global properties from condenser_api.get_dynamic_global_properties.

    Returns number

  • Get voting mana for an account.

    Parameters

    • name: string

      Account name.

    Returns Promise<{
        current_mana: number;
        max_mana: number;
    }>

    Current and maximum voting mana calculated from account vesting state.

  • Estimate the vote value for a post from mana, reward fund and chain properties.

    Parameters

    • voteWeight: number

      Vote weight percentage.

    • mana: {
          current_mana: number;
          max_mana: number;
      }

      Current and maximum voting mana for the account.

      • current_mana: number
      • max_mana: number
    • net_rshares: string | number

      Net rshares of the post.

    • cashout_time: number

      Cashout time of the post in milliseconds.

    • DGP: DynamicGlobalProperties

      Dynamic global properties.

    • REWARD_FUND: RewardFund

      Reward fund data.

    Returns number

    Estimated vote value rounded to three decimals.