@okxweb3/coin-bitcoin
Version:
@ok/coin-bitcoin is a Bitcoin SDK for building Web3 wallets and applications. It supports BTC, BSV, DOGE, LTC, and TBTC, enabling private key management, transaction signing, address generation, and inscriptions like BRC-20, Runes, CAT, and Atomicals.
14 lines • 391 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.pickLargeFeeUtxo = void 0;
function pickLargeFeeUtxo(feeUtxos) {
let max = feeUtxos[0];
for (const utxo of feeUtxos) {
if (utxo.satoshis > max.satoshis) {
max = utxo;
}
}
return max;
}
exports.pickLargeFeeUtxo = pickLargeFeeUtxo;
//# sourceMappingURL=utxo.js.map