# BlockInfo
Structure containing block headers. The structure is returned by the blockInfoByHeight built-in function.
# Constructor
For Standard library version 7 or 8:
BlockInfo(timestamp: Int, height: Int, baseTarget: Int, generationSignature: ByteVector, generator: Address, generatorPublicKey: ByteVector, vrf: ByteVector|Unit, rewards: List[(Address, Int)])
For Standard library version 6:
BlockInfo(timestamp: Int, height: Int, baseTarget: Int, generationSignature: ByteVector, generator: Address, generatorPublicKey: ByteVector, vrf: ByteVector|Unit)
# Fields
# | Name | Data type | Description |
---|---|---|---|
1 | timestamp | Int | Block timestamp |
2 | height | Int | Block height |
3 | baseTarget | Int | Base target |
4 | generationSignature | ByteVector | Generation signature |
5 | generator | Address | Address of the account that created a block |
6 | generatorPublicKey | ByteVector | Public key of the account that created a block |
7 | vrf | ByteVector|Unit | VRF for block version 5, unit otherwise. |
8 | rewards | List[(Address, Int)] | List of tuples of block reward beneficiary address and the amount in WAVELET they receive, sorted by address bytes in lexicographic order. The field is added in Standard library version 7 |