Instantiate Lucid

Lucid Evolution can be used with or without a blockchain provider, which allows you to query data and submit transactions.

We support the Mainnet, Preprod, and Preview networks

Provider selection

There are multiple builtin providers you can choose from in Lucid Evolution

import { Lucid, Blockfrost } from "@lucid-evolution/lucid";
 
const lucid = await Lucid(
  new Blockfrost("https://cardano-preprod.blockfrost.io/api/v0", "<projectId>"),
  "Preprod"
);

Query Provider

The provider in lucid.provider is the provider instance you passed to Lucid() when selecting your provider (Blockfrost, Kupmios, Maestro, Koios, etc.).

Using the provider directly:

const utxos = await lucid.provider.getUtxos("addr_test...");

Remember that you can switch providers using the switchProvider method if needed.