bitcoinlib icon indicating copy to clipboard operation
bitcoinlib copied to clipboard

Getting - Dummy value must be set to "" - after some of the method calls

Open jhincapie opened this issue 4 years ago • 6 comments
trafficstars

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?

jhincapie avatar Feb 03 '21 22:02 jhincapie

Thanks for reporting this. Are you passing --deprecatedrpc=accounts to bitcoind when starting?

moodmosaic avatar Feb 04 '21 10:02 moodmosaic

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

jhincapie avatar Feb 04 '21 18:02 jhincapie

I do use a wallet called "CoinSplitter", which I manually load outside the program.

jhincapie avatar Feb 04 '21 18:02 jhincapie

Could you try with that setting I suggested?

moodmosaic avatar Feb 04 '21 18:02 moodmosaic

Yeah, I did, no difference.

jhincapie avatar Feb 04 '21 18:02 jhincapie

Hello, I get also this with the command getbalance : "dummy first argument must be excluded or set to "*". This error also in console of bitcoin-core V22

unikaq avatar Feb 13 '23 22:02 unikaq