query.provider.getunspentoutputswithasset
Home > @blaze-cardano/query > 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.