Author

Topic: bitcoin-cli.exe issue (Read 1021 times)

jr. member
Activity: 43
Merit: 7
July 21, 2015, 02:45:42 AM
#5
Thanks, also works """ instead of \"
legendary
Activity: 1890
Merit: 1086
Ian Knowles - CIYAM Lead Developer
July 21, 2015, 02:40:34 AM
#4
Try surrounding each entire argument with unescaped quotes and use backslash escaped quotes within those like this "createrawtransaction" example:

Quote
createrawtransaction "[{\"txid\":\"1abc\",\"vout\":0}]" "{\"dest\":999.99}]"
jr. member
Activity: 43
Merit: 7
July 21, 2015, 02:35:27 AM
#3
Unfortunately it does not work

Quote
bitcoin-cli.exe -testnet -rpcconnect=127.0.0.1 -rpcport=18332 -rpcuser=bitcoinrpc -rpcpassword=123456 createmultisig 2 /'[/"04D9546728BB1D1BF309EF3C2C7278D8D306052ECF7DC81443F16E75AE607099DFCFC573A3E7155 3BD8321D91C209BAB03AA999BEFA6E77734C0F4DD34EF78EBFD/",/"041050FF637A97FA462DFFA19D0BC013869F6231895019BD9F263A0A55A067665CFCA4473AAB1DC 38E8AECF359E23CE6BB35FF900BC84FDD890A3B982EA50DD92F/",/"04E086DCE7893384CBFA89FBBF7D33DE3F1EE01279A1E9810D952F1C440E91FC7EE7CB9CF070DFB DEE397E123C363D140221E81610B7BD695905FBF198EDFD71A1/"]/'

Also, tried double quotes, double /, and \
staff
Activity: 3458
Merit: 6793
Just writing some code
July 20, 2015, 12:06:56 PM
#2
You need to escape each quote. Put a slash / before each quote.
jr. member
Activity: 43
Merit: 7
July 20, 2015, 10:59:28 AM
#1
Hello!

I have tried to execute client command by bitcoin-cli.exe into cmd


for example, simple

Quote
bitcoin-cli.exe -testnet -rpcconnect=127.0.0.1 -rpcport=18332 -rpcuser=bitcoinrpc -rpcpassword=123456 getinfo

works correct

but command like this

Quote
bitcoin-cli.exe -testnet -rpcconnect=127.0.0.1 -rpcport=18332 -rpcuser=bitcoinrpc -rpcpassword=123456 createmultisig 2 '["04D9546728BB1D1BF309EF3C2C7278D8D306052ECF7DC81443F16E75AE607099DFCFC573A3E7155 3BD8321D91C209BAB03AA999BEFA6E77734C0F4DD34EF78EBFD","041050FF637A97FA462DFFA19D0BC013869F6231895019BD9F263A0A55A067665CFCA4473AAB1DC 38E8AECF359E23CE6BB35FF900BC84FDD890A3B982EA50DD92F","04E086DCE7893384CBFA89FBBF7D33DE3F1EE01279A1E9810D952F1C440E91FC7EE7CB9CF070DFB DEE397E123C363D140221E81610B7BD695905FBF198EDFD71A1"]'

throw exception

Quote
error: Error parsing JSON:'[04D9546728BB1D1BF309EF3C2C7278D8D306052ECF7DC81443F1
6E75AE607099DFCFC573A3E71553BD8321D91C209BAB03AA999BEFA6E77734C0F4DD34EF78EBFD,0
41050FF637A97FA462DFFA19D0BC013869F6231895019BD9F263A0A55A067665CFCA4473AAB1DC3 8
E8AECF359E23CE6BB35FF900BC84FDD890A3B982EA50DD92F,04E086DCE7893384CBFA89FBBF7D33
DE3F1EE01279A1E9810D952F1C440E91FC7EE7CB9CF070DFBDEE397E123C363D140221E81610B7B D
695905FBF198EDFD71A1]'

Should I wrap it ? or ... ?

BR!


Jump to: