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

x/lucid/src/provider/maestro.ts>Maestro

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.
Latest
class Maestro
implements Provider
import { Maestro } from "https://deno.land/x/lucid@0.10.10/src/provider/maestro.ts";

Constructors

new
Maestro(unnamed 0: MaestroConfig)

Properties

apiKey: string
turboSubmit: boolean
url: string

Methods

private
commonHeaders()
private
getAllPagesData<T>(
getResponse: (qry: string) => Promise<Response>,
qry: string,
paramsGiven: URLSearchParams,
errorMsg: string,
): Promise<Array<T>>
private
getUtxosInternal(addressOrCredential: Address | Credential, unit?: Unit): Promise<UTxO[]>
private
maestroUtxoToUtxo(result: MaestroUtxo): 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>