Unable to sendrawtransaction

0 votes

I'm creating a raw transaction the following way.

multichain-cli chain1 createrawtransaction '[{"txid":"1aa04efdf2b5d4b7b1832e124dc9c9c13b35bee764083166beb7d75c1e57a5ce","vout":0}]' '{"1Hkkz3pCNNHcvMsC9gqjFyE33B1EiVFqjVrT7g":{"asset1":2.0}}'   

returns tx hexstring

multichain-cli chain1 signrawtransaction [ tx hexstring]

multichain-cli chain1 sendrawtransaction [ tx hexstring]



I get error: {"code":-26,"message":"64: Nonstandard transaction input"}


I can't find what the problem is here. The txID i'm using as input for this new transaction is just a normal transaction of asset1 between 2 wallets. Any ideas on why this might be happening?



asked Dec 28, 2015 by Nico

1 Answer

0 votes
Best answer

You need to pass the output of signrawtransaction as the input to sendrawtransaction, rather than the same input to both of them. The signrawtransaction call adds the signatures into the input transaction hex string and outputs the signed transaction as a result. You cannot send an unsigned transaction.

answered Dec 28, 2015 by MultiChain