Get UTXOs
Usage
Basic Usage
const address = '1G6CB3Ch4zFkPmuhZzEyChQmrQPfi86qk3';
// Returns up to 10 UTXOs by default
const utxos = await mnee.getUtxos(address);
console.log('UTXOs:', utxos);With Pagination
const address = '1G6CB3Ch4zFkPmuhZzEyChQmrQPfi86qk3';
// Get first page with 20 UTXOs
const page1 = await mnee.getUtxos(address, 0, 20);
console.log('First 20 UTXOs:', page1);
// Get second page
const page2 = await mnee.getUtxos(address, 1, 20);
console.log('Next 20 UTXOs:', page2);
// Get UTXOs in ascending order (oldest first)
const ascUtxos = await mnee.getUtxos(address, 0, 50, 'asc');
console.log('Oldest UTXOs first:', ascUtxos);Multiple Addresses
Parameters
Response
Sample Response
UTXO Properties
Main Properties
BSV21 Data (data.bsv21)
data.bsv21)Cosigner Data (data.cosign)
data.cosign)Common Use Cases
Calculate Total Spendable Balance
Get All UTXOs with Pagination
Find UTXOs Above a Certain Amount
Prepare UTXOs for Multi-Source Transfer
Filter UTXOs by Operation Type
Performance Considerations
Important Notes
See Also
Last updated