我尝试发送事务时引发了BlockCypherException

时间:2018-03-06 13:00:32

标签: java node.js node-modules bitcoin

当我尝试执行如下代码时:

IntermediaryTransaction unsignedTx 
  = context.getTransactionService().newTransaction(
           new ArrayList<String>(Arrays.asList(srcAddress)),
           new ArrayList<String>(Arrays.asList(destAddress)),
           satoshis);

SignUtils.signWithBase58KeyWithPubKey(unsignedTx, privateKey);

Transaction tx = context.getTransactionService().sendTransaction(unsignedTx);

获取例外

    BlockCypherException{message=Bad Request, status=400, blockCypherError=[Error{error='Error validating generated transaction: Error running script for input 0 referencing e437b7f9b96f8f391a1e281cf815159c5a8a20f7799ae9d15a08029a1bb99fb2 at 0: Script was NOT verified successfully.'}], exception=null}

0 个答案:

没有答案