Instantiate Lucid

Instantiate Lucid with a provider.

Lucid can be used with or without a blockchain provider, which allows you to query data and submit transactions. It's recommended to select a provider and network when using Lucid. Lucid currently supports the Mainnet, Preprod, and Preview networks, with Mainnet being the default selection if no network is specified. Throughout the entire docs we are making use of the Preprod network.

import { Blockfrost, Lucid } from "";

const lucid = await
  new Blockfrost("", "<projectId>"),

Lucid allows you to choose different providers. You also have the option to implement your own custom provider.