开发者社区> 问答> 正文

bitcoin Operation not valid with the cur?400报错

Bitcoin rpc 执行命令:

bitcoin-cli -testnet signrawtransaction xxxxxx 时报错:

{
  "hex": "0200000001b923ff06e2d03fe8437fa8acef9b1642c35a34d6eaf9c63e7e5e9dcf58d39ede0000000000ffffffff01e033f1070000000017a9141c53ad66ef9ff549fcfe8d76d1c7802d573a52888700000000",
  "complete": false,
  "errors": [
    {
      "txid": "de9ed358cf9d5e7e3ec6f9ead6345ac342169befaca87f43e83fd0e206ff23b9",
      "vout": 0,
      "witness": [
      ],
      "scriptSig": "",
      "sequence": 4294967295,
      "error": "Operation not valid with the current stack size"
    }
  ]
}

展开
收起
爱吃鱼的程序员 2020-06-08 09:54:04 499 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    解决没

    应该是私钥的问题

    decoderawtransaction0200000001b923ff06e2d03fe8437fa8acef9b1642c35a34d6eaf9c63e7e5e9dcf58d39ede0000000000ffffffff01e033f1070000000017a9141c53ad66ef9ff549fcfe8d76d1c7802d573a52888700000000

    楼主看一下交易组装的信息

    私钥已经交给钱包管理了啊,可以不用传私钥吧

    这里测试的是用的别人的私钥签名
    2020-06-08 11:14:01
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
How Customers Are Using the IBM Data Science Experience--Expected Case and Not So Expected Ones 立即下载
Building a Real-Time Fraud Prevention Engine Using Open Source (Big Data) Software 立即下载
Needle in the Haystack—User Behavior Anomaly Detection for Information Security 立即下载