Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jhincapie opened this issue Feb 3, 2021 · 6 comments
Labels

Comments

@jhincapie
Copy link

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?

@moodmosaic
Copy link
Contributor

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

@jhincapie
Copy link
Author

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
Copy link
Author

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

@moodmosaic
Copy link
Contributor

Could you try with that setting I suggested?

@jhincapie
Copy link
Author

Yeah, I did, no difference.

@unikaq
Copy link

unikaq commented Feb 13, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants