Package Exports
- @blockfrost/blockfrost-js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@blockfrost/blockfrost-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
A JavaScript/TypeScript SDK for interacting with the https://blockfrost.io API.
BEFORE YOU START
Login to the https://blockfrost.io. Create a project and get your api key.

INSTALLATION
yarn add @blockfrost/blockfrost-js
USAGE
import BlockfrostAPI from '@blockfrost/blockfrost-js';
const API = new BlockFrostAPI({
projectId: 'YOUR API KEY HERE',
});
try {
const result = await API.blocksLatest();
console.log(result);
} catch (err) {
console.log(err);
}