# [Ride v4 and v3] BlockInfo
⚠️ This is the documentation for the Standard library version 4 and 3. We recommend to use version 6. Go to version 6
Structure of a block.
# Constructor
For Standard library version 3:
BlockInfo(timestamp: Int, height: Int, baseTarget: Int, generationSignature: ByteVector, generator: Address, generatorPublicKey: ByteVector)
For Standard library version 4:
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.The field is added in Standard library version 4 |