Skip to main content
Version: 0.2.38

sdk.blockfrost.getunspentoutputbynft

Home > @blaze-cardano/sdk > Blockfrost > getUnspentOutputByNFT

Blockfrost.getUnspentOutputByNFT() method

This method fetches the UTxO that holds a particular NFT given as argument. 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.

Signature:

getUnspentOutputByNFT(nft: AssetId): Promise<TransactionUnspentOutput>;

Parameters

Parameter

Type

Description

nft

AssetId

The AssetId for the NFT

Returns:

Promise<TransactionUnspentOutput>

A Promise that resolves to TransactionUnspentOutput.