Class BlockUpgradeVote

Fields relating to voting for a protocol upgrade.



  • Creates a new BlockUpgradeVote object.


    • __namedParameters: { upgradeApprove?: boolean; upgradeDelay?: number | bigint; upgradePropose?: string }
      • Optional upgradeApprove?: boolean
      • Optional upgradeDelay?: number | bigint
      • Optional upgradePropose?: string

    Returns BlockUpgradeVote


attribute_map: Record<string, string>
upgradeApprove?: boolean

(upgradeyes) Indicates a yes vote for the current proposal.

upgradeDelay?: number | bigint

(upgradedelay) Indicates the time between acceptance and execution.

upgradePropose?: string

(upgradeprop) Indicates a proposed upgrade.


  • Get an object ready for encoding to either JSON or msgpack.


    • binary: boolean = false

      Use true to indicate that the encoding can handle raw binary objects (Uint8Arrays). Use false to indicate that raw binary objects should be converted to base64 strings. True should be used for objects that will be encoded with msgpack, and false should be used for objects that will be encoded with JSON.

    Returns Record<string, any>

Generated using TypeDoc