Get block dates
Changed onFind block(s) based on date, blockNum, timestamp, or 'special'. Corresponds to the <a href="/chifra/chaindata/#chifra-when">chifra when</a> command line.
Request
- Base URLhttp://localhost:8080
- Authnone declared
Query parameters
one or more dates, block numbers, hashes, or special named blocks (see notes)
export a list of the 'special' blocks
display or process timestamps
with --timestamps only, returns the number of timestamps in the cache
with --timestamps only, repairs block(s) in the block range by re-querying from the chain
with --timestamps only, checks the validity of the timestamp data
with --timestamps only, bring the timestamp database forward to the latest block
with --timestamps --check only, verifies every N timestamp directly from the chain (slow)
the chain to use
suppress the header in the output
force the results of the query into the cache
removes related items from the cache
export format, one of [ txt | csv | json ]
Response
returns the requested data
Example response
{
"blockNumber": 52029,
"date": "2015-08-08 06:22:55 UTC",
"name": "firstLog",
"timestamp": 1439014975
}Changes
- breaking
for the
queryrequest parameterdeep, the type changed frombooleantonumber, and format from no format touint64
- breaking
- breaking
added to the
/response propertyoneOflist for the response status - info
removed from the
/response propertyoneOflist for the response status
- breaking