【问题标题】:Getting 66: insufficient priority. when trying to push transaction获得 66:优先级不足。尝试推送交易时
【发布时间】:2019-09-26 12:29:07
【问题描述】:

当我尝试推送交易时,基本上我会收到66: insufficient priority. Code:-26

我已经尝试手动增加费用。 AMOUNT_TOSEND 在 satoshis 中

  1. 我从 https://api.blockcypher.com/v1/btc/test3/addrs/ 中获取 total_received 值 + 地址 + '/full?limit=50' 乘以100000000
  2. 我从这里收取费用:https://test-insight.bitpay.com/api/utils/estimatefee 并乘以100000000
  3. 这是我计算输出的方法: tx.addOutput(ADDRESS_BENEFICIARY, Number(AMOUNT_TOSEND)) tx.addOutput(ADDRESS_BENEFICIARY, Number(balance) - (Number(AMOUNT_TOSEND) + Number(fee)))
  4. 粘贴到https://test-insight.bitpay.com/tx/send 并获取66: insufficient priority. Code:-26

【问题讨论】:

    标签: bitcoin bitcoinjs-lib


    【解决方案1】:

    在我开始使用交易金额而不是总余额后能够修复,还将费用乘以交易大小(以字节为单位),但不确定我是否确实需要它

    【讨论】:

    • 无需将费用乘以字节数即可工作
    猜你喜欢
    • 1970-01-01
    • 2015-08-05
    • 2012-01-04
    • 2021-10-23
    • 1970-01-01
    • 1970-01-01
    • 2015-09-07
    • 1970-01-01
    • 2021-10-11
    相关资源
    最近更新 更多