-
Notifications
You must be signed in to change notification settings - Fork 24
Home
Vladimir Volek edited this page Jun 21, 2021
·
8 revisions
A JavaScript/TypeScript SDK for interacting with the https://blockfrost.io API.
Login to the https://blockfrost.io. Create a project and get your api key.
yarn add @blockfrost/blockfrost-js
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);
}