Sendmany cannot send - error getrandom

I have node and I want to send money:

/home/user1/bitcoinz/src/bitcoinz-cli -datadir=/home/user1/bitcoinz/data z_sendmany “t1XeYrDvBcdeKd8tXN9EmUBAnYoRxbZEno9” ‘[{“address”:“t1QGYNeFvRAvqQk3XGMimDDfzu1b2qeSgwB”,“amount”:1}]’

and I get error:
error code: -1
error message:

How to check more details what is wrong?

No idea, sorry. That is a BitcoinZ node, not a Zcash node. I’ve never seen that error reported for Zcash nodes, and I have no insight into their codebase (including how far removed it is from Zcash now); you should ask on the BitcoinZ forums or issue tracker.

1 Like

Problem was with entropy on the server. BitcoinZ is based on Zcash .
On my machine with Ubuntu entropy was around 150-300. BitcoinZ node need at least 1000 to correctly work.

The BitcoinZ devs have obviously replaced the RNG with one that can fail at the application level. We wouldn’t recommend that. It’s the operating system’s responsibility to provide a cryptographically secure source of randomness that can’t fail (short of the whole system being very broken). Zcash uses libsodium’s RNG API, which in the case of Linux is a wrapper around the getrandom syscall.

1 Like

Thanks for explanation.

1 Like