Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lucid/src/provider/mod.ts>Blockfrost

Lucid is a library, which allows you to create Cardano transactions and off-chain code for your Plutus contracts in JavaScript, Deno and Node.js.
Go to Latest
class Blockfrost
implements Provider
import { Blockfrost } from "https://deno.land/x/lucid@0.5.2/src/provider/mod.ts";

Constructors

new
Blockfrost(url: string, projectId: string)

Properties

data: { url: string; projectId: string; }

Methods

awaitTx(txHash: TxHash): Promise<boolean>
getCurrentSlot(): Promise<Slot>
getDatum(datumHash: DatumHash): Promise<Datum>
getUtxos(address: string): Promise<UTxO[]>
getUtxosWithUnit(address: Address, unit: Unit): Promise<UTxO[]>
submitTx(tx: Core.Transaction): Promise<TxHash>