Skip to main content

Class: ProtocolParamsMilestoneOption

A Protocol Parameters Milestone Option.

Hierarchy​

Table of contents​

Constructors​

Properties​

Methods​

Constructors​

constructor​

• new ProtocolParamsMilestoneOption(targetMilestoneIndex, protocolVersion, params)

Parameters​

NameTypeDescription
targetMilestoneIndexnumberThe milestone index at which these protocol parameters become active.
protocolVersionnumberThe to be applied protocol version.
paramsstringThe protocol parameters in binary form. Hex-encoded with 0x prefix.

Overrides​

MilestoneOption.constructor

Properties​

type​

• Readonly type: MilestoneOptionType

Inherited from​

MilestoneOption.type


targetMilestoneIndex​

• targetMilestoneIndex: number

The milestone index at which these protocol parameters become active.


protocolVersion​

• protocolVersion: number

The to be applied protocol version.


params​

• params: string

The protocol parameters in binary form. Hex-encoded with 0x prefix.

Methods​

getType​

▸ getType(): MilestoneOptionType

Get the type of milestone option.

Returns​

MilestoneOptionType

Inherited from​

MilestoneOption.getType