Haskell SDK for Blockfrost.io API.
The repository provides an API definition, data types, client and utilities for working with Blockfrost. We are striving to provide beginner-friendly interface while adding a bit of type safety, especially when working with monetary values.
blockfrost-apiTypes, sample data, API definition and tests. See the
README.mdfor quick tutorial
blockfrost-client-coreInstances and helpers shared by all clients.
blockfrost-clientBlockfrost client for use with
README.mdcontains an introduction and usage examples.
blockfrost-prettyPretty printing utilities for pretty printing Ada values and various Blockfrost types.
To use this SDK, you first need to log in to blockfrost.io, create your project and retrieve the API token.
The packages are not yet published on Hackage. For now, you can
either work within this repository using plain
cabal or in combination
If you already have
git clone https://github.com/blockfrost/blockfrost-haskell cd blockfrost-haskell cabal update cabal build all cabal repl blockfrost-client
Note: Due to TLS support, you might need to
zlib headers if compilation
http-client-tls fails. (On NixOS this is
nix-shell -p zlib.dev).
nix-shell, you can obtain a preconfigured environment
git clone https://github.com/blockfrost/blockfrost-haskell cd blockfrost-haskell nix-shell cabal build all cabal repl blockfrost-client
See blockfrost-client for a tutorial and usage examples.
Readme of blockfrost-api contains a short primer for working with Blockfrost types, data samples and monetary values.