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

x/lucid/src/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.7.0/src/mod.ts";

Constructors

new
Blockfrost(url: string, projectId: string)

Properties

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

Methods

private
blockfrostUtxosToUtxos(result: BlockfrostUtxoResult): Promise<UTxO[]>
awaitTx(txHash: TxHash): Promise<boolean>
getDatum(datumHash: DatumHash): Promise<Datum>
getDelegation(rewardAddress: string): Promise<Delegation>
getUtxos(address: string): Promise<UTxO[]>
getUtxosByOutRef(outRefs: OutRef[]): Promise<UTxO[]>
getUtxosWithUnit(address: Address, unit: Unit): Promise<UTxO[]>
submitTx(tx: Transaction): Promise<TxHash>