Skip to main content
Module

x/lucid/mod.ts>Kupmios

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
Latest
class Kupmios
implements Provider
import { Kupmios } from "https://deno.land/x/lucid@0.10.7/mod.ts";

Constructors

new
Kupmios(kupoUrl: string, ogmiosUrl: string)

Properties

kupoUrl: string
ogmiosUrl: string

Methods

private
kupmiosUtxosToUtxos(utxos: unknown): Promise<UTxO[]>
private
ogmiosWsp(methodname: string, args: unknown): Promise<WebSocket>
awaitTx(txHash: TxHash, checkInterval?): Promise<boolean>
getDatum(datumHash: DatumHash): Promise<Datum>
getDelegation(rewardAddress: RewardAddress): Promise<Delegation>
getProtocolParameters(): Promise<ProtocolParameters>
getUtxoByUnit(unit: Unit): Promise<UTxO>
getUtxos(addressOrCredential: Address | Credential): Promise<UTxO[]>
getUtxosByOutRef(outRefs: Array<OutRef>): Promise<UTxO[]>
getUtxosWithUnit(addressOrCredential: Address | Credential, unit: Unit): Promise<UTxO[]>
submitTx(tx: Transaction): Promise<TxHash>