Skip to main content

query.kupmios.getunspentoutputswithasset

Home > @blaze-cardano/query > Kupmios > getUnspentOutputsWithAsset

Kupmios.getUnspentOutputsWithAsset() method

Gets unspent outputs containing a specific asset.

Signature:

getUnspentOutputsWithAsset(address: Address | null, unit: AssetId): Promise<TransactionUnspentOutput[]>;

Parameters

Parameter

Type

Description

address

Address | null

Address to fetch unspent outputs for.

unit

AssetId

Asset ID to filter by.

Returns:

Promise<TransactionUnspentOutput[]>

A promise that resolves to an array of unspent outputs.