Skip to main content

Get block number by time stamp

GET 

/?module=block&action=getblocknobytime

Get block number by time stamp

Request

Query Parameters

    apiKey stringrequired
    Example: pk_1234567890
    module stringrequired

    Possible values: [block]

    action stringrequired

    Possible values: [getblocknobytime]

    timestamp integerrequired

    Integer representing the Unix timestamp in seconds.

    closest stringrequired

    Possible values: [before, after]

    Closest block to the provided timestamp, either before or after.

Responses

OK

Schema
    message string
    result object
    blockNumber string
    status string
Loading...

Was this page helpful?