Skip to main content
POST
getBlockTime
Configuración y errores: inicio rápido RPC. Facturación: créditos y límites.

Autorizaciones

api_key
string
query
requerido

Cuerpo

application/json
jsonrpc
enum<string>
predeterminado:2.0
requerido

The JSON-RPC protocol version.

Opciones disponibles:
2.0
Ejemplo:

"2.0"

id
string
predeterminado:1
requerido

A unique identifier for the request.

Ejemplo:

"1"

method
enum<string>
predeterminado:getBlockTime
requerido

The name of the RPC method to invoke.

Opciones disponibles:
getBlockTime
params
integer[]
requerido

Parameters for the request.

Block slot number to retrieve the corresponding timestamp for.

Respuesta

Successfully retrieved block time.

jsonrpc
enum<string>
Opciones disponibles:
2.0
id
string
result
integer

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

Ejemplo:

1674721622