Skip to main content
Version: 0.2.38

sdk.provider.getunspentoutputswithasset

Home > @blaze-cardano/sdk > Provider > getUnspentOutputsWithAsset

Provider.getUnspentOutputsWithAsset() method

Retrieves the unspent outputs for a given address and asset.

Signature:

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

Parameters

Parameter

Type

Description

address

Address

The address to retrieve unspent outputs for.

unit

AssetId

The asset to retrieve unspent outputs for.

Returns:

Promise<TransactionUnspentOutput[]>

{Promise<TransactionUnspentOutput[]>} - The unspent outputs for the address and asset.