I’ve read that fromaddress
is required with z_sendmany
: z_sendmany - Zcash 4.5.1-1 RPC Docs
However, I’d like to perform shielding transactions that automatically pick from any available UTXOs across multiple T-addresses, making it hard to specify a fromaddress
.
Can this be done without, say, having to regularly sweep UTXOs to a singular T-address?
Thanks!
z_mergetoaddress ?
You can give it an option to merge all taddrs, ie :-
zcash-cli z_mergetoaddress [“ANY_TADDR”] zs1chilebobsecretbeerfund
1 Like
Thanks, @ChileBob . That will come in handy in the future. Though for now, I don’t want to sweep the funds.
Rather, I’ll need to send outgoing transactions from time to time of varying amounts (less than the wallet balance), sometimes to a Z-address.
Like most wallets of other coins do, I don’t want it to care which addresses the funds are on. Do you know if that’s possible?
You can feed z_mergetoaddress an array of from-addresses, but it takes the entire balance. Not sure if that helps?
Pretty sure you’ll have to do this in two steps, z_mergetoaddress then z_sendmany.
hloo
August 28, 2020, 12:41am
5
All the lite wallets in the Zecwallet family do this, but it sounds like you want to do it from a full node wallet.
1 Like
Yes! Should have specified that. Directly from a zcashd full node.
1 Like
str4d
August 28, 2020, 10:51pm
7
I’ve seen several requests for this in short succession, and had some time today:
zcash:master
← str4d:3640-z_sendmany-any-taddr
opened 10:29PM - 28 Aug 20 UTC
When using this special string as the from address, non-coinbase UTXOs
from any… transparent addresses within the wallet will be used to fund the
transaction. Change outputs will be sent to a new transparent address,
as with any other spend of transparent funds.
Closes zcash/zcash#3640.
7 Likes
Woah! Thanks a bunch, @str4d ! You rock.
I see it’s marked for the next sprint. I’ll keep a watch.
2 Likes
And thanks for the PR review, @daira !
2 Likes