Bitcoin Forum
May 25, 2024, 09:59:14 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: What is the easiest way to list UTXO for an address?  (Read 177 times)
Sandino (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 2


View Profile
March 04, 2019, 07:44:21 PM
 #1

What is the easiest way to list UTXO for an address?

https://api.blockcypher.com/v1/btc/test3/addrs/mo8cuzxCzpyHd7fr1cA7nBrNuRbPaz1LsM/full?limit=50%3FunspentOnly=false&includeScript=true

Using the blockcypher API it returns all outputs, but not all of them are expendable.
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3402
Merit: 6657


Just writing some code


View Profile WWW
March 04, 2019, 08:08:41 PM
 #2

You can use Bitcoin Core and it's scantxoutset command. It will return all UTXOs in the UTXO set that fit a specified address.

Thirdspace
Hero Member
*****
Offline Offline

Activity: 1232
Merit: 738


Mixing reinvented for your privacy | chipmixer.com


View Profile
March 04, 2019, 11:57:57 PM
Merited by ABCbits (1)
 #3

I think that's because you specify "full" and/or "unspentOnly=false"
I tried the following api and it returns the 2 available utxo
https://api.blockcypher.com/v1/btc/test3/addrs/mo8cuzxCzpyHd7fr1cA7nBrNuRbPaz1LsM?unspentOnly=true

Sandino (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 2


View Profile
March 05, 2019, 04:35:29 PM
 #4


Got it!!

I wasted considerable time trying to filter the wrong answer.

Thank you, gentlemen.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!