Hi @ all
I am working on a small project. Its about to interact with a local zcash testnet node via HTML interface and RPC-commands. Until now, everything works fine. The project is just for self studying and to learn more about the technology. While reading the “Zcash 5.5.0 RPC Docs” i was from time to time confused. I hope that someone can help me with my questions.
In the whole chapter(z_mergetoaddress) is no word about unified addresses. Is it possible to use ANY_UNIFIED in the “fromaddresses” array?
Is it possible to mix sapling and orchard addresses in “fromaddresses” array?
What are the default shielded limits for orchard notes?
As i saw, there is just one command to generate addresses - z_getaddressforaccount.
The commands getnewaddress and z_getnewaddress are DEPRECATED. How to generate different types of addresses? I was just able to generate utest1… addresses with different pools.
If you validate unified addresses (z_validateaddress), the property “ismine” is missing in the Result. What is the reason for?
The last thing is about transactions between different accounts in the same wallet.
Example:
I created a transaction (z_sendmany) from a unified address[Account:0,receiver_types:[“orchard”]] to three different receivers.
Receiver one: unified address[Account:1,receiver_types:[“p2pkh”, “sapling”, “orchard”],amount:0.01]
Receiver two: unified address[Account:3,receiver_types:[“p2pkh”, “sapling”, “orchard”],amount:0.01]
Receiver three: unified address[Account:4,receiver_types:[“p2pkh”, “sapling”, “orchard”],amount:0.02]
I was expecting that i spend a amount in the high of 0.0401 ZEC. But my expecting was wrong. I spend a amount of 0.04606575 ZEC. If i check the transaction details, there is one additional entry in the outputs array. The entry has a amount of 0.00596575 ZEC.
The differences to the other entries are the the property “address” is missing and “walletInternal” is true.
After the transaction is done, the amount of 0.00596575 ZEC returns to the sender address. During the transaction, it is not possible to use this amount.
What is the reason for this behavior? How can i calculate the additional amount before the transaction is made?
Best regards