get timestamp

API details

This API returns the node's current timestamp, primarily to verify its connectivity.

Get system timestamp

get
Responses
200
OK
get
GET /v1/timestamp HTTP/1.1
Host: testnetopenapi.hibit.app
Accept: */*
{
  "code": 1,
  "message": "text",
  "data": {
    "timestamp": 1
  }
}

Code example

import { hibitClient } from '@delandlabs/hibit-sdk';

const options = {
  network: HibitNetwork.Testnet
};
hibitClient.setOptions(options);

const timestamp = await hibitClient.getTimestamp();

SDK

Source code https://github.com/Deland-Labs/hibit-sdk

Last updated