sadoprotocol / utxo-api

Ordinal aware API wrapper ...
6 stars 2 forks source link

Include tx.hex in unspents #2

Closed msmalley closed 1 year ago

msmalley commented 1 year ago

In most cases, with new BitcoinJS library, you now need to supply the whole TX HEX for non-witness unspents ...

This involves having to do a utxo/transaction on each unspents to get the full tx.hex ...

This could also be added / accessed via an additional parameter?

AFwcxx commented 1 year ago

This feature is added in this commit.

Example of body request:

{
    "address": "<address>",
    "options": {
        "txhex": true // Default: false
    }
}