Current Timestamp

Fetch current time stamp from the server

The Current Server Timestamp endpoint is designed to return the current timestamp at the server level. This will be particularly useful when you need to synchronize payload and signature generation between your local system and the server, ensuring that both have the same timestamp for a consistent and secure signature.

Note: We recommend using this endpoint only if you encounter issues with the timestamp using your current timestamp method. This is intended as a troubleshooting step to reconcile any discrepancies between the local and server-generated timestamps.

GET https://api.onramp.money/onramp/api/v2/common/public/currentTimestamp

const axios = require('axios');

const currentTimestamp = async () => {
    try {
        const response = await axios.get(`https://api.onramp.money/onramp/api/v2/common/public/currentTimestamp`);
        console.log(JSON.stringify(response.data, null, 2));
    } catch (error) {
        console.error(`Error: ${error}`);
    }
};

currentTimestamp();
{
  "status": 1,
  "code": 200,
  "data": 1692864725606
}

Last updated