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 |
The address to retrieve unspent outputs for. | |
unit |
The asset to retrieve unspent outputs for. |
Returns:
Promise<TransactionUnspentOutput[]>
{Promise<TransactionUnspentOutput[]>} - The unspent outputs for the address and asset.