# [Ride v5] BlockInfo
⚠️ This is the documentation for the Standard library version 5. We recommend to use version 6. Go to version 6
Structure containing block headers. The structure is returned by the blockInfoByHeight built-in function.
# Constructor
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. |