Skip to main content
Version: Next

sdk.provider

Home > @blaze-cardano/sdk > Provider

Provider class

Abstract class for the Provider.

Signature:

declare abstract class Provider 

Remarks

This class provides an interface for interacting with the blockchain.

Constructors

Constructor

Modifiers

Description

(constructor)(network, networkName)

Constructs a new instance of the Provider class

Properties

Property

Modifiers

Type

Description

network

NetworkId

networkName

NetworkName

Methods

Method

Modifiers

Description

awaitTransactionConfirmation(txId, timeout)

abstract

Waits for the confirmation of a given transaction.

evaluateTransaction(tx, additionalUtxos)

abstract

Evaluates the transaction.

getParameters()

abstract

Retrieves the parameters for a transaction.

getSlotConfig()

Get the slot config, which describes how to translate between slots and unix timestamps.

getUnspentOutputByNFT(unit)

abstract

Retrieves the unspent output for a given NFT.

getUnspentOutputs(address)

abstract

Retrieves the unspent outputs for a given address.

getUnspentOutputsWithAsset(address, unit)

abstract

Retrieves the unspent outputs for a given address and asset.

postTransactionToChain(tx)

abstract

Posts a given transaction to the chain.

resolveDatum(datumHash)

abstract

Resolves the datum for a given datum hash.

resolveScriptRef(script, address)

Resolves the script deployment by finding a UTxO containing the script reference.

resolveUnspentOutputs(txIns)

abstract

Resolves the unspent outputs for a given set of transaction inputs.

slotToUnix(slot)

Translate a slot to a unix millisecond timestamp

unixToSlot(unix_millis)

Translate a unix millisecond timestamp to slot, according to the providers network