For the complete documentation index, see llms.txt. This page is also available as Markdown.

Block by timestamp

Returns the next block produced for any given timestamp

https://api.vechainstats.com/v2/block/blocktime
    ?blockts=1695307034
    &VCS_API_KEY=your_api_key
Parameter
Description

blockts

Timestamp in Unix Timestamp format

The response will return the block number produced on or the first one after the requested timestamp

{
    "status": {
        "success": true,
        "message": "OK"
    },
    "data": {
        "number": 16478272,
        "hash": "0x00fb70402a118cd7c571736eb14bfa98c0df1bc5cb97db3a2843d60460eb38ae",
        "timestamp": 1695307040
    },
    "meta": {
        "blockts": 1695307034,
        "timestamp": 1695634559
    }
}

Last updated

Was this helpful?