Blockstream / esplora

Explorer for Bitcoin and Liquid
MIT License
974 stars 391 forks source link

UTXO API and Scriptpubkey #431

Open zilveer opened 1 year ago

zilveer commented 1 year ago

Hi, I am trying to get all the UTXO for an address, for i,e https://blockstream.info/api/address/1DX8EFJPMBimWyApUndVSnwucu29Eob4fC/utxo

But I cannot find the Scriptpubkey to actually make a transaction.

This is the Blockcypher API for UTXO: https://api.blockcypher.com/v1/btc/main/addrs/1DX8EFJPMBimWyApUndVSnwucu29Eob4fC?includeScript=true&unspentOnly=true

As you can see Blockcypher has the script there but Blockstream doesnt.

I dont wanna do additional extra API calls for this single request, I cannot either find any other API call for Blockstream to get the UTXO with the script, or did I miss something?

Any help is appreciated.

regards Zilveer

wain1 commented 10 months ago

https://unisat.io/wallet-api-v4/address/btc-utxo?address=1DX8EFJPMBimWyApUndVSnwucu29Eob4fC 用这个api