How to send properly zec using cli-wallet?

Use zcash-cli z_sendmany see z_sendmany - Zcash 4.5.1-1 RPC Docs and there is more detail in the usage section of the docs: User Guide — Zcash Documentation 5.2.0 documentation

This allows you to send both shielded and transparent funds using the same command.

You could also use zcash-cli sendmany for only transparent addresses as per Bitcoin. Though I have never used zcash-cli sendtoaddress I’m guessing you could set the default account address using zcash-cli setaccount setaccount - Zcash 4.5.1-1 RPC Docs but all these account based calls have been deprecated so just stick with z_sendmany.

1 Like