跳转到主要内容
POST
getBlockTime

授权

api_key
string
query
必填

请求体

application/json
jsonrpc
enum<string>
默认值:2.0
必填

The JSON-RPC protocol version.

可用选项:
2.0
示例:

"2.0"

id
string
默认值:1
必填

A unique identifier for the request.

示例:

"1"

method
enum<string>
默认值:getBlockTime
必填

The name of the RPC method to invoke.

可用选项:
getBlockTime
params
integer[]
必填

Parameters for the request.

Block slot number to retrieve the corresponding timestamp for.

响应

Successfully retrieved block time.

jsonrpc
enum<string>
可用选项:
2.0
id
string
result
integer

Unix timestamp (seconds since the Unix epoch) when this specific Solana block was produced by a validator.

示例:

1674721622