How to prevent selection of unspent transaction from UTXO's which is already used in another unconfirmed transaction ?
I am fetching list of UTXO's from here - https://mempool.space/testnet/docs/api/rest#get-address-utxo
Trying to send bitcoins from native segwit address to all other types of addresses using bitcoinjs-lib in node js.
From list of UTXO's I am selecting the inputs as required. If the first input is already selected for a transaction which is unconfirmed how can I prevent the selection of that first input in next transaction ?