Class BlockUpgradeState

Fields relating to a protocol upgrade.



  • Creates a new BlockUpgradeState object.


    • __namedParameters: { currentProtocol: string; nextProtocol?: string; nextProtocolApprovals?: number | bigint; nextProtocolSwitchOn?: number | bigint; nextProtocolVoteBefore?: number | bigint }
      • currentProtocol: string
      • Optional nextProtocol?: string
      • Optional nextProtocolApprovals?: number | bigint
      • Optional nextProtocolSwitchOn?: number | bigint
      • Optional nextProtocolVoteBefore?: number | bigint

    Returns BlockUpgradeState


attribute_map: Record<string, string>
currentProtocol: string

(proto) The current protocol version.

nextProtocol?: string

(nextproto) The next proposed protocol version.

nextProtocolApprovals?: number | bigint

(nextyes) Number of blocks which approved the protocol upgrade.

nextProtocolSwitchOn?: number | bigint

(nextswitch) Round on which the protocol upgrade will take effect.

nextProtocolVoteBefore?: number | bigint

(nextbefore) Deadline round for this protocol upgrade (No votes will be consider after this round).


  • 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