Skip to content

cardano.blockfrost

cardano.blockfrost.enable

Whether to enable Blockfrost.io backend is an API service providing abstraction between you and Cardano blockchain data

Blockfrost connects to a postgresql database, populated by Cardano DB sync with node. You need to either provide the db connection arguments:

1
2
3
4
5
6
7
8
services.blockfrost.settings.dbSync = {
  # these are the defaults:
  name = "cardano-db-sync";
  user = "cardano-db-sync";
  port = 5432;
  # optionally supply "host" and "password" parameters.
  socketdir = "/run/postgresql";
};

or enable the default postgresql service with cardano.blockfrost.postgres.enable .

Type: boolean

Default: false

Example: true

Declared by: - https://github.com/mlabs-haskell/cardano.nix/tree/main/modules/blockfrost.nix

cardano.blockfrost.postgres.enable

Whether to enable Connect blockfrost to local postgresql…

Type: boolean

Default: true

Example: true

Declared by: - https://github.com/mlabs-haskell/cardano.nix/tree/main/modules/blockfrost.nix