Skip to content
JaapWijnen edited this page May 4, 2021 · 15 revisions

Header

public struct Header: Codable 

Inheritance

Codable

Initializers

init(version:chainID:height:time:lastBlockID:lastCommitHash:dataHash:validatorsHash:nextValidatorsHash:consensusHash:appHash:lastResultsHash:evidenceHash:proposerAddress:)

public init(
        version: Version = Version(),
        chainID: String,
        height: Int64 = 0,
        time: Date,
        lastBlockID: BlockID = BlockID(),
        lastCommitHash: Data = Data(),
        dataHash: Data = Data(),
        validatorsHash: Data = Data(),
        nextValidatorsHash: Data = Data(),
        consensusHash: Data = Data(),
        appHash: Data = Data(),
        lastResultsHash: Data = Data(),
        evidenceHash: Data = Data(),
        proposerAddress: Data = Data()
    ) 

Properties

version

public let version: Version

chainID

public let chainID: String

height

public var height: Int64

time

public let time: Date

lastBlockID

public let lastBlockID: BlockID

lastCommitHash

public let lastCommitHash: Data

dataHash

public let dataHash: Data

validatorsHash

public let validatorsHash: Data

nextValidatorsHash

public let nextValidatorsHash: Data

consensusHash

public let consensusHash: Data

appHash

public let appHash: Data

lastResultsHash

public let lastResultsHash: Data

evidenceHash

public let evidenceHash: Data

proposerAddress

public let proposerAddress: Data
Clone this wiki locally