createrawsendfrom can not auto sign

+1 vote

I have privatekey address in my wallet. and i runing createrawsendfrom to lock currency,why i should call sign? beacuse createrawsendfrom to send currency didn't  sign. Thx.

D:\test\mc>multichain-cli.exe a11 listaddresses
{"method":"listaddresses","params":[],"id":1,"chain_name":"a11"}

[
    {
        "address" : "1AEoRyNruSLjnbS4z7dUjKAdqDBfbEcgFqdMmu",
        "ismine" : true
    }
]

D:\test\mc>multichain-cli.exe a11 createrawsendfrom 1AEoRyNruSLjnbS4z7dUjKAdqDB
fbEcgFqdMmu "{\"1AEoRyNruSLjnbS4z7dUjKAdqDBfbEcgFqdMmu\":{\"\":5}}" "[]" lock
{"method":"createrawsendfrom","params":["1AEoRyNruSLjnbS4z7dUjKAdqDBfbEcgFqdMmu"
,{"1AEoRyNruSLjnbS4z7dUjKAdqDBfbEcgFqdMmu":{"":5}},[],"lock"],"id":1,"chain_name
":"a11"}

0100000005b89c2bb0ce7cf6fc2a73402be2ed21fb820c91a9677d30062964b15537085b1b000000
0000ffffffff1c2767b9699d022a2e21d052ca877bb0c66497ebcbc8e9e0c454882503a99f2c0000
000000ffffffff386b40111b3615631182affb966769632d7d3844f1e9276cfd061c9d7368104300
00000000ffffffffedc51064486d72ea440fab400b3ee31da4903d92f347404bf748576b53dd1a51
0000000000fffffffff6fe3968ce1ba9f04088af0a22e626cb75ae23c9f12734750770f699f7346a
590000000000ffffffff0205000000000000001976a9144459d033ea7acfe37d81276bc20aa9baa0
5ebf6688ac00000000000000001976a9144459d033ea7acfe37d81276bc20aa9baa05ebf6688ac00
000000

D:\test\mc>multichain-cli.exe a11 sendrawtransaction 0100000005b89c2bb0ce7cf6fc
2a73402be2ed21fb820c91a9677d30062964b15537085b1b0000000000ffffffff1c2767b9699d02
2a2e21d052ca877bb0c66497ebcbc8e9e0c454882503a99f2c0000000000ffffffff386b40111b36
15631182affb966769632d7d3844f1e9276cfd061c9d736810430000000000ffffffffedc5106448
6d72ea440fab400b3ee31da4903d92f347404bf748576b53dd1a510000000000fffffffff6fe3968
ce1ba9f04088af0a22e626cb75ae23c9f12734750770f699f7346a590000000000ffffffff020500
0000000000001976a9144459d033ea7acfe37d81276bc20aa9baa05ebf6688ac0000000000000000
1976a9144459d033ea7acfe37d81276bc20aa9baa05ebf6688ac00000000
{"method":"sendrawtransaction","params":["0100000005b89c2bb0ce7cf6fc2a73402be2ed
21fb820c91a9677d30062964b15537085b1b0000000000ffffffff1c2767b9699d022a2e21d052ca
877bb0c66497ebcbc8e9e0c454882503a99f2c0000000000ffffffff386b40111b3615631182affb
966769632d7d3844f1e9276cfd061c9d736810430000000000ffffffffedc51064486d72ea440fab
400b3ee31da4903d92f347404bf748576b53dd1a510000000000fffffffff6fe3968ce1ba9f04088
af0a22e626cb75ae23c9f12734750770f699f7346a590000000000ffffffff020500000000000000
1976a9144459d033ea7acfe37d81276bc20aa9baa05ebf6688ac00000000000000001976a9144459
d033ea7acfe37d81276bc20aa9baa05ebf6688ac00000000"],"id":1,"chain_name":"a11"}

error code: -26
error message:
64: Nonstandard transaction input

D:\test\mc>multichain-cli.exe a11 signrawtransaction 0100000005b89c2bb0ce7cf6fc
2a73402be2ed21fb820c91a9677d30062964b15537085b1b0000000000ffffffff1c2767b9699d02
2a2e21d052ca877bb0c66497ebcbc8e9e0c454882503a99f2c0000000000ffffffff386b40111b36
15631182affb966769632d7d3844f1e9276cfd061c9d736810430000000000ffffffffedc5106448
6d72ea440fab400b3ee31da4903d92f347404bf748576b53dd1a510000000000fffffffff6fe3968
ce1ba9f04088af0a22e626cb75ae23c9f12734750770f699f7346a590000000000ffffffff020500
0000000000001976a9144459d033ea7acfe37d81276bc20aa9baa05ebf6688ac0000000000000000
1976a9144459d033ea7acfe37d81276bc20aa9baa05ebf6688ac00000000
 

{
    "hex" : "0100000005b89c2bb0ce7cf6fc2a73402be2ed21fb820c91a9677d30062964b1553
7085b1b000000006b4830450221009d783046237e7587f9485c49af2214bc68904cd5e7514c57863
2afa4324755bc02204d91ce2c98b2af0d5dec033d1021aef3f51250554be73a40e2f50d4c79c382d
f012103034581ba9aea4fc5bfaa2fe6fe0197142ea69ca6a125d646b8e3d016b50d17f5ffffffff1
c2767b9699d022a2e21d052ca877bb0c66497ebcbc8e9e0c454882503a99f2c000000006b4830450
22100c4a147108a0aed04bfe5f2a1b530a756e07a35930211c32e7619fc14fcb0b2630220184b860
b62bc2c0fcb93aae05cb675508ae7dec4d3896cb203f7967395c4028a012103034581ba9aea4fc5b
faa2fe6fe0197142ea69ca6a125d646b8e3d016b50d17f5ffffffff386b40111b3615631182affb9
66769632d7d3844f1e9276cfd061c9d73681043000000006b483045022100e96efd596a6841c6e9e
6c1dace64e9ed758c5fd8594862130ef21f0f50c60ac9022064269cfec27ed76ac96975e08c7a4f6
e46b8ddc3053afc865be66f254dce8ad3012103034581ba9aea4fc5bfaa2fe6fe0197142ea69ca6a
125d646b8e3d016b50d17f5ffffffffedc51064486d72ea440fab400b3ee31da4903d92f347404bf
748576b53dd1a51000000006a47304402200ffe1218915208452276d1e88859f92362cf2920e1471
55ca9ad62198e5702470220499b54f0d7f512fd759df45e07d8283844a40760c0bd99f2219941174
f77c137012103034581ba9aea4fc5bfaa2fe6fe0197142ea69ca6a125d646b8e3d016b50d17f5fff
ffffff6fe3968ce1ba9f04088af0a22e626cb75ae23c9f12734750770f699f7346a59000000006a4
73044022071684b25e052f5171bcd75a2eeb436abbe3f96bafdb6111f613fbe6b82c378a90220487
5026d6d26867d146b5df11433af68f7c074e65a2820abaeb9885b6c59b1fd012103034581ba9aea4
fc5bfaa2fe6fe0197142ea69ca6a125d646b8e3d016b50d17f5ffffffff020500000000000000197
6a9144459d033ea7acfe37d81276bc20aa9baa05ebf6688ac00000000000000001976a9144459d03
3ea7acfe37d81276bc20aa9baa05ebf6688ac00000000",
    "complete" : true
}


D:\test\mc>multichain-cli.exe a11 sendrawtransaction 0100000005b89c2bb0ce7cf6fc
2a73402be2ed21fb820c91a9677d30062964b15537085b1b000000006b4830450221009d78304623
7e7587f9485c49af2214bc68904cd5e7514c578632afa4324755bc02204d91ce2c98b2af0d5dec03
3d1021aef3f51250554be73a40e2f50d4c79c382df012103034581ba9aea4fc5bfaa2fe6fe019714
2ea69ca6a125d646b8e3d016b50d17f5ffffffff1c2767b9699d022a2e21d052ca877bb0c66497eb
cbc8e9e0c454882503a99f2c000000006b483045022100c4a147108a0aed04bfe5f2a1b530a756e0
7a35930211c32e7619fc14fcb0b2630220184b860b62bc2c0fcb93aae05cb675508ae7dec4d3896c
b203f7967395c4028a012103034581ba9aea4fc5bfaa2fe6fe0197142ea69ca6a125d646b8e3d016
b50d17f5ffffffff386b40111b3615631182affb966769632d7d3844f1e9276cfd061c9d73681043
000000006b483045022100e96efd596a6841c6e9e6c1dace64e9ed758c5fd8594862130ef21f0f50
c60ac9022064269cfec27ed76ac96975e08c7a4f6e46b8ddc3053afc865be66f254dce8ad3012103
034581ba9aea4fc5bfaa2fe6fe0197142ea69ca6a125d646b8e3d016b50d17f5ffffffffedc51064
486d72ea440fab400b3ee31da4903d92f347404bf748576b53dd1a51000000006a47304402200ffe
1218915208452276d1e88859f92362cf2920e147155ca9ad62198e5702470220499b54f0d7f512fd
759df45e07d8283844a40760c0bd99f2219941174f77c137012103034581ba9aea4fc5bfaa2fe6fe
0197142ea69ca6a125d646b8e3d016b50d17f5fffffffff6fe3968ce1ba9f04088af0a22e626cb75
ae23c9f12734750770f699f7346a59000000006a473044022071684b25e052f5171bcd75a2eeb436
abbe3f96bafdb6111f613fbe6b82c378a902204875026d6d26867d146b5df11433af68f7c074e65a
2820abaeb9885b6c59b1fd012103034581ba9aea4fc5bfaa2fe6fe0197142ea69ca6a125d646b8e3
d016b50d17f5ffffffff0205000000000000001976a9144459d033ea7acfe37d81276bc20aa9baa0
5ebf6688ac00000000000000001976a9144459d033ea7acfe37d81276bc20aa9baa05ebf6688ac00
000000
 

1227aa1bfe631327fd76c6931c5cea2431e0c9015194f425ae062b67e91ea1c5

asked Aug 4 by liutao0532dev

1 Answer

0 votes

Your need to pass the sign action to createrawsendfrom if you want it to sign the transaction as well. Alternatively, just pass the send action and you won't need to call sendrawtransaction either.

answered Aug 5 by MultiChain
...