Skip to main content

query.blockfrost.resolveunspentoutputs

Home > @blaze-cardano/query > Blockfrost > resolveUnspentOutputs

Blockfrost.resolveUnspentOutputs() method

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

Signature:

resolveUnspentOutputs(txIns: TransactionInput[]): Promise<TransactionUnspentOutput[]>;

Parameters

Parameter

Type

Description

txIns

TransactionInput[]

A list of TransactionInput

Returns:

Promise<TransactionUnspentOutput[]>

A Promise that resolves to TransactionUnspentOutput[].

Remarks

The response is parsed into a TransactionUnspentOutput[] type, which is then returned. If the response is not in the expected format, an error is thrown.