To run the SDK you need Node.js version 16 and higher. While you may find a way to run it directly in a browser, we don't actively support or provide troubleshooting assistance with this scenario. We recommend setting up your own Node.js backend. Exposing your API keys in a frontend application is almost always a bad idea. Using the SDK is pretty straight-forward as you can see from the following examples. For more examples take a look in blockfrost-js-examples repository. Blockfrost Node.js SDK throws 2 types of errors, BlockfrostServerError and BlockfrostClientError. Each of these errors is extended from the built-in Error class, allowing you to properly catch it and handle it in your code.
Features
- Blockfrost SDK exports several utility functions to improve developer experience
- Blockfrost.io SDK for JavaScript for Node.js
- To use this SDK, you first need to log in to blockfrost.io
- To run the SDK you need Node.js version 16 and higher
- The SDK is hosted on npmjs.com, so you can directly import it using your favorite package manager
- For a list of all SDK methods check out our wiki
Categories
File SharingLicense
Apache License V2.0Follow blockfrost-js
You Might Also Like
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of blockfrost-js!