跳转至主要内容

qn_getBlocksInTimestampRange RPC Method - Block Timestamp Lookup

正在加载...

更新于
2026年5月21日

qn_getBlocksInTimestampRange RPC Method - Block Timestamp Lookup

Please note that this RPC method requires the Block Timestamp Lookup add-on enabled on your Quicknode endpoint. This method is available for mainnet only.

参数

startTimestamp
整数
必填
正在加载...
endTimestamp
整数
必填
正在加载...
pageSize
整数
正在加载...
lastTimestamp
整数
正在加载...
lastBlockNumber
整数
正在加载...

退货

结果
对象
正在加载...
数组
正在加载...
blockNumber
整数
正在加载...
网络
字符串
正在加载...
时间戳
整数
正在加载...
pagination
对象
正在加载...
hasNextPage
布尔型
正在加载...
nextPageParams
对象
正在加载...
lastBlockNumber
整数
正在加载...
lastTimestamp
整数
正在加载...
pageSize
整数
正在加载...
请求
回复
1
{
2
“jsonrpc”: "2.0",
3
"id": 1,
4
"result": {
5
"blocks": [
6
{
7
"blockNumber": 29402654,
8
"network": "ethereum",
9
"timestamp": 1730000000
10
},
11
{
12
"blockNumber": 29402655,
13
"network": "ethereum",
14
"timestamp": 1730000012
15
},
16
{
17
"blockNumber": 29402656,
18
"network": "ethereum",
19
"timestamp": 1730000024
20
},
21
{
22
"blockNumber": 29402657,
23
"network": "ethereum",
24
"timestamp": 1730000036
25
},
26
{
27
"blockNumber": 29402658,
28
"network": "ethereum",
29
"timestamp": 1730000048
30
}
31
],
32
"pagination": {
33
"hasNextPage": true,
34
"nextPageParams": {
35
"lastBlockNumber": 29402658,
36
"lastTimestamp": 1730000048,
37
"pageSize": 5
38
}
39
}
40
}
41
}
1
{
2
“jsonrpc”: "2.0",
3
"id": 1,
4
"result": {
5
"blocks": [
6
{
7
"blockNumber": 29402654,
8
"network": "ethereum",
9
"timestamp": 1730000000
10
},
11
{
12
"blockNumber": 29402655,
13
"network": "ethereum",
14
"timestamp": 1730000012
15
},
16
{
17
"blockNumber": 29402656,
18
"network": "ethereum",
19
"timestamp": 1730000024
20
},
21
{
22
"blockNumber": 29402657,
23
"network": "ethereum",
24
"timestamp": 1730000036
25
},
26
{
27
"blockNumber": 29402658,
28
"network": "ethereum",
29
"timestamp": 1730000048
30
}
31
],
32
"pagination": {
33
"hasNextPage": true,
34
"nextPageParams": {
35
"lastBlockNumber": 29402658,
36
"lastTimestamp": 1730000048,
37
"pageSize": 5
38
}
39
}
40
}
41
}
还没有账号吗?
只需几秒钟即可创建您的 Quicknode 端点,并开始构建
免费开始使用