Skip to main content
GET
/
timestamps
/
{timestamp}
/
block
cURL
curl 'https://portal.sqd.dev/datasets/bitcoin-mainnet/timestamps/1700000000/block'
{
  "block_number": 816786
}

Path Parameters

timestamp
integer<int64>
default:1700000000
required

Unix timestamp in seconds.

Example:

1700000000

Response

Block number resolved.

block_number
integer<int64>
required

Number of the first block whose timestamp is greater than or equal to the requested timestamp.

Example:

18000000