Skip to content

cardano-web3-js / KoiosProvider

Class: KoiosProvider

Implements

Constructors

new KoiosProvider()

new KoiosProvider(baseUrl, headers?): KoiosProvider

Parameters

baseUrl: string

headers?: Headers

Returns

KoiosProvider

Defined in

src/provider/koios/index.ts:8

Methods

evaluateTx()

evaluateTx(tx): Promise<RedeemerCost[]>

Parameters

tx: string

Returns

Promise<RedeemerCost[]>

Implementation of

T.Provider.evaluateTx

Defined in

src/provider/koios/index.ts:146


getDatumByHash()

getDatumByHash(datumHash): Promise<string>

Parameters

datumHash: string

Returns

Promise<string>

Implementation of

T.Provider.getDatumByHash

Defined in

src/provider/koios/index.ts:103


getDelegation()

getDelegation(stakingAddress): Promise<AccountDelegation>

Parameters

stakingAddress: string

Returns

Promise<AccountDelegation>

Implementation of

T.Provider.getDelegation

Defined in

src/provider/koios/index.ts:130


getProtocolParameters()

getProtocolParameters(): Promise<ProtocolParameters>

Returns

Promise<ProtocolParameters>

Implementation of

T.Provider.getProtocolParameters

Defined in

src/provider/koios/index.ts:28


getScriptByHash()

getScriptByHash(scriptHash): Promise<Script>

Parameters

scriptHash: string

Returns

Promise<Script>

Implementation of

T.Provider.getScriptByHash

Defined in

src/provider/koios/index.ts:115


getTip()

getTip(): Promise<Tip>

Returns

Promise<Tip>

Implementation of

T.Provider.getTip

Defined in

src/provider/koios/index.ts:12


getUtxoByOutputRef()

getUtxoByOutputRef(txHash, index): Promise<Utxo>

Parameters

txHash: string

index: number

Returns

Promise<Utxo>

Implementation of

T.Provider.getUtxoByOutputRef

Defined in

src/provider/koios/index.ts:74


getUtxosByAddress()

getUtxosByAddress(address): Promise<Utxo[]>

Parameters

address: string

Returns

Promise<Utxo[]>

Implementation of

T.Provider.getUtxosByAddress

Defined in

src/provider/koios/index.ts:70


getUtxosByAddresses()

getUtxosByAddresses(addresses): Promise<Utxo[]>

Parameters

addresses: string[]

Returns

Promise<Utxo[]>

Implementation of

T.Provider.getUtxosByAddresses

Defined in

src/provider/koios/index.ts:43


observeTx()

observeTx(txHash, checkInterval, maxTime): Promise<boolean>

Parameters

txHash: string

checkInterval: number = 3000

maxTime: number = ...

Returns

Promise<boolean>

Implementation of

T.Provider.observeTx

Defined in

src/provider/koios/index.ts:163


resolveUtxoDatumAndScript()

resolveUtxoDatumAndScript(utxo): Promise<Utxo>

Parameters

utxo: Utxo

Returns

Promise<Utxo>

Implementation of

T.Provider.resolveUtxoDatumAndScript

Defined in

src/provider/koios/index.ts:87


resolveUtxosDatumAndScript()

resolveUtxosDatumAndScript(utxos): Promise<Utxo[]>

Parameters

utxos: Utxo[]

Returns

Promise<Utxo[]>

Defined in

src/provider/koios/index.ts:95


submitAndObserveTx()

submitAndObserveTx(tx, checkInterval, maxTime): Promise<boolean>

Parameters

tx: string

checkInterval: number = 3000

maxTime: number = ...

Returns

Promise<boolean>

Implementation of

T.Provider.submitAndObserveTx

Defined in

src/provider/koios/index.ts:206


submitTx()

submitTx(tx): Promise<string>

Parameters

tx: string

Returns

Promise<string>

Implementation of

T.Provider.submitTx

Defined in

src/provider/koios/index.ts:189

Released under the MIT License