UNPKG

@blockfrost/blockfrost-js

Version:

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

22 lines (21 loc) 591 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 * */ async function genesis() { try { const res = await this.instance(`genesis`); return res.body; } catch (error) { throw (0, errors_1.handleError)(error); } } exports.genesis = genesis;