Skip to content
Vladimir Volek edited this page Jun 21, 2021 · 8 revisions

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);
}

@blockfrost/blockfrost-js

Clone this wiki locally