Skip to main content
Version: Next

sdk.blockfrost

Home > @blaze-cardano/sdk > Blockfrost

Blockfrost class​

Signature:

declare class Blockfrost extends Provider 

Extends: Provider

Constructors​

Constructor

Modifiers

Description

(constructor)(params)

Constructs a new instance of the Blockfrost class

Properties​

Property

Modifiers

Type

Description

url

string

withScriptRefCaching

boolean

Methods​

Method

Modifiers

Description

awaitTransactionConfirmation(txId, timeout)

This method awaits confirmation of the transaction given as argument.

evaluateTransaction(tx, additionalUtxos)

This method evaluates how much execution units a transaction requires.

getParameters()

This method fetches the protocol parameters from the Blockfrost API.

getUnspentOutputByNFT(nft)

This method fetches the UTxO that holds a particular NFT given as argument.

getUnspentOutputs(address, filter)

This method fetches the UTxOs under a given address.

getUnspentOutputsWithAsset(address, unit)

This method fetches the UTxOs under a given address that hold a particular asset.

headers()

postTransactionToChain(tx)

This method submits a transaction to the chain.

resolveDatum(datumHash)

This method returns the datum for the datum hash given as argument.

resolveScriptRef(script, address)

resolveUnspentOutputs(txIns)

This method resolves transaction outputs from a list of transaction inputs given as argument.