Skip to main content
Module

x/lucid/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.
Very Popular
Go to Latest
class Blockfrost
implements Provider
import { Blockfrost } from "https://deno.land/x/lucid@0.10.4/mod.ts";

Constructors

new
Blockfrost(url: string, projectId?: string)

Properties

projectId: string
url: string

Methods

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