Title: What is the easiest way to list UTXO for an address? Post by: Sandino on March 04, 2019, 07:44:21 PM 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. Title: Re: What is the easiest way to list UTXO for an address? Post by: achow101 on March 04, 2019, 08:08:41 PM You can use Bitcoin Core and it's scantxoutset command. It will return all UTXOs in the UTXO set that fit a specified address.
Title: Re: What is the easiest way to list UTXO for an address? Post by: Thirdspace on March 04, 2019, 11:57:57 PM https://api.blockcypher.com/v1/btc/test3/addrs/mo8cuzxCzpyHd7fr1cA7nBrNuRbPaz1LsM/full?limit=50%3FunspentOnly=false&includeScript=true I think that's because you specify "full" and/or "unspentOnly=false" Using the blockcypher API it returns all outputs, but not all of them are expendable. I tried the following api and it returns the 2 available utxo https://api.blockcypher.com/v1/btc/test3/addrs/mo8cuzxCzpyHd7fr1cA7nBrNuRbPaz1LsM?unspentOnly=true Title: Re: What is the easiest way to list UTXO for an address? Post by: Sandino on March 05, 2019, 04:35:29 PM Got it!! I wasted considerable time trying to filter the wrong answer. Thank you, gentlemen. |