UNPKG

@apexfusionfoundation/blockfrost-js

Version:

A JavaScript/TypeScript SDK for interacting with the https://blockfrost.io API

24 lines (23 loc) 668 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.genesis = void 0; const errors_1 = require("../../../utils/errors"); /** * Obtains the information about blockchain genesis. * @see {@link https://docs.blockfrost.io/#tag/Cardano-Ledger/paths/~1genesis/get| API docs for Blockchain genesis} * * @returns Genesis parameters * */ function genesis() { return new Promise((resolve, reject) => { this.instance(`genesis`) .then(resp => { resolve(resp.body); }) .catch(err => { reject((0, errors_1.handleError)(err)); }); }); } exports.genesis = genesis;