UNPKG

@apexfusionfoundation/blockfrost-js

Version:

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

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