org.bitcoinj.wallet.Wallet.adjustOutputDownwardsForFee()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(72)

本文整理了Java中org.bitcoinj.wallet.Wallet.adjustOutputDownwardsForFee()方法的一些代码示例,展示了Wallet.adjustOutputDownwardsForFee()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Wallet.adjustOutputDownwardsForFee()方法的具体详情如下:
包路径:org.bitcoinj.wallet.Wallet
类名称:Wallet
方法名:adjustOutputDownwardsForFee

Wallet.adjustOutputDownwardsForFee介绍

[英]Reduce the value of the first output of a transaction to pay the given feePerKb as appropriate for its size.
[中]减少交易第一次输出的价值,以根据其规模支付给定的feePerKb。

代码示例

代码示例来源:origin: cash.bitcoinj/bitcoinj-core

if (!adjustOutputDownwardsForFee(rekeyTx, toMove, Transaction.DEFAULT_TX_FEE, true)) {
  log.error("Failed to adjust rekey tx for fees.");
  return null;

代码示例来源:origin: fr.acinq/bitcoinj-core

if (!adjustOutputDownwardsForFee(rekeyTx, toMove, Transaction.DEFAULT_TX_FEE, true)) {
  log.error("Failed to adjust rekey tx for fees.");
  return null;

代码示例来源:origin: greenaddress/GreenBits

if (!adjustOutputDownwardsForFee(rekeyTx, toMove, Transaction.DEFAULT_TX_FEE, true)) {
  log.error("Failed to adjust rekey tx for fees.");
  return null;

代码示例来源:origin: HashEngineering/dashj

if (!adjustOutputDownwardsForFee(rekeyTx, toMove, Transaction.DEFAULT_TX_FEE, true, false)) {
  log.error("Failed to adjust rekey tx for fees.");
  return null;

代码示例来源:origin: fr.acinq/bitcoinj-core

if (!adjustOutputDownwardsForFee(req.tx, bestCoinSelection, feePerKb, req.ensureMinRequiredFee))
  throw new CouldNotAdjustDownwards();

代码示例来源:origin: HashEngineering/dashj

if (!adjustOutputDownwardsForFee(req.tx, bestCoinSelection, feePerKb, req.ensureMinRequiredFee, req.useInstantSend))
  throw new CouldNotAdjustDownwards();

代码示例来源:origin: greenaddress/GreenBits

if (!adjustOutputDownwardsForFee(req.tx, bestCoinSelection, feePerKb, req.ensureMinRequiredFee))
  throw new CouldNotAdjustDownwards();

代码示例来源:origin: cash.bitcoinj/bitcoinj-core

if (!adjustOutputDownwardsForFee(req.tx, bestCoinSelection, feePerKb, req.ensureMinRequiredFee))
  throw new CouldNotAdjustDownwards();

相关文章

微信公众号

最新文章

更多

Wallet类方法