Skip to Content
Utilities

Get server time

GET/timePublic

Get the current server time. Signed requests need an LNM-ACCESS-TIMESTAMP within 30 seconds of it.

Response Body

OK

application/json
  1. response
time*string
Formatdate-time
import { createHttpClient } from '@ln-markets/sdk/rest/v3'

const client = createHttpClient()

const result = await client.time()
{
  "time": "2019-08-24T14:15:22Z"
}