blockfrost-js-ratelimited
Version:
A JavaScript/TypeScript SDK for interacting with the https://blockfrost.io API
29 lines (28 loc) • 808 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.healthClock = exports.health = void 0;
const utils_1 = require("../../../utils");
function health() {
return new Promise((resolve, reject) => {
this.axiosInstance(`${this.apiUrl}/health`)
.then(resp => {
resolve(resp.data);
})
.catch(err => {
reject(utils_1.handleError(err));
});
});
}
exports.health = health;
function healthClock() {
return new Promise((resolve, reject) => {
this.axiosInstance(`${this.apiUrl}/health/clock`)
.then(resp => {
resolve(resp.data);
})
.catch(err => {
reject(utils_1.handleError(err));
});
});
}
exports.healthClock = healthClock;