Get All UTXOs
Usage
Basic Usage
const address = '1G6CB3Ch4zFkPmuhZzEyChQmrQPfi86qk3';
try {
const utxos = await mnee.getAllUtxos(address);
console.log('All UTXOs:', utxos);
console.log('Total UTXOs found:', utxos.length);
// Calculate total balance
const totalBalance = utxos.reduce((sum, utxo) => sum + utxo.data.bsv21.amt, 0);
console.log('Total balance (atomic):', totalBalance);
console.log('Total balance (MNEE):', mnee.fromAtomicAmount(totalBalance));
} catch (error) {
console.error('Error fetching UTXOs:', error.message);
}Parameters
Parameter
Type
Required
Description
Response
MNEEUtxo Structure
Error Handling
Performance Considerations
Use Cases
Comparison with Related Methods
Method
Purpose
Performance
Use Case
Examples
Calculate Complete Balance
UTXO Analysis
Find Specific UTXOs
When NOT to Use
See Also
Last updated