bitcoinlib
bitcoinlib copied to clipboard
Getting - Dummy value must be set to "" - after some of the method calls
Hello,
I am writing a little script to split coins from one address into four. So far, only using the testnet and BitcoinCore 0.21. When calling some of the methods returns the error 'Dummy value must be set to ""'. So, the method to getbalance works great, but the method sendmany fails. Here is an example of the output:
CoinSplitter Balance: 0.02574542 Unhandled exception. BitcoinLib.ExceptionHandling.Rpc.RpcInternalServerErrorException: Dummy value must be set to "" ---> System.Net.WebException: The remote server returned an error: (500) Internal Server Error. at System.Net.HttpWebRequest.GetResponse() at BitcoinLib.RPC.Connector.RpcConnector.MakeRequest[T](RpcMethods rpcMethod, Object[] parameters) in /home/jhincapie/Desktop/CoinSplitter/bitcoinlib/src/BitcoinLib/RPC/Connector/RpcConnector.cs:line 57 --- End of inner exception stack trace --- at BitcoinLib.RPC.Connector.RpcConnector.MakeRequest[T](RpcMethods rpcMethod, Object[] parameters) in /home/jhincapie/Desktop/CoinSplitter/bitcoinlib/src/BitcoinLib/RPC/Connector/RpcConnector.cs:line 106 at BitcoinLib.Services.CoinService.SendMany(String fromAccount, Dictionary`2 toBitcoinAddress, Int32 minConf, String comment) in /home/jhincapie/Desktop/CoinSplitter/bitcoinlib/src/BitcoinLib/Services/RpcServices/RpcService/RpcService.cs:line 621 at CoinSplitter.Program.Main(String[] args) in /home/jhincapie/Desktop/CoinSplitter/Program.cs:line 41
Any ideas?
Thanks for reporting this. Are you passing --deprecatedrpc=accounts to bitcoind when starting?
Hey, no I am just running:
/usr/local/bin/bitcoind -daemon -testnet
For the bitcoin.conf on the testnet I am using:
[test] server=1 txindex=1 rpcbind=[ipaddress] rpcallowip=0.0.0.0/0 rpcport=8332 rpcuser=[username] rpcpassword=[password] maxconnections=20
I do use a wallet called "CoinSplitter", which I manually load outside the program.
Could you try with that setting I suggested?
Yeah, I did, no difference.
Hello, I get also this with the command getbalance