5 posts were merged into an existing topic: YWallet transactions
Blockchair will show that page for any transaction ID that it does not recognize, even if it’s not on the mempool (where transactions waiting to be mined live); that is, don’t trust Blockchair to check the status of a transaction. As @Autotunafish pointed out, if you check on https://mainnet.zcashexplorer.app/ you will see that the transaction is not found, meaning that either was never submitted successfully or was never mined and it expired, possibly for having the wrong fee. You will need to contact the exchange.
Guidance on Dynamically Calculating Fees for z_sendmany
to Avoid Common Errors
Hi,
I am working with the Zcash RPC API (z_sendmany
) to construct and send transactions dynamically across different transaction types (e.g., T to Orchard, T to T, etc.). However, I occasionally encounter errors such as:
SendTransaction: Transaction commit failed:: tx unpaid action limit exceeded: 1 action(s) exceeds limit of 0
Insufficient funds: ...
To address this, I would like to dynamically calculate the required fees for any transaction type beforehand. My question is:
What is the best way to estimate the fee dynamically in alignment with ZIP 317 for all transaction types, and precalculate relevant transaction fee, in order to avoid the errors described below
I would greatly appreciate your guidance.
Thank you
Will using the default work?
null
Pre-calculation is just an estimate, usually based on a send-all tx to one recipient. But txs can vary and so, too, the fee.
To calculate a fee, you can tally all of your notes you hold or want to combine in a tx and multiply the number of them by 0.00005 (theres a little more to it but thats the gist). This applies to transactions that have more notes going into it (also much more common) than going out to multiple recipients. The fee ultimately depends on which one (inputs or outputs) there are more of and it’s not possible for the wallet to know how many potential recipients you could add, hence the estimate (plus, many wallets dont support multi-pay functionality). But, you would manually calculate for both of them in the same way where each note (whichever there are more of) costs 0.00005.
That what I generally I did, but what if I use unified addresses with unified receivers in order to process transactions. For example: I got the deposit on UA address on p2pkh(t-part) receiver, and than wanted to make a transfer from this address, to orchard pool address of the other user.
If I am right, according to the ZIP-317, there are 2 logical actions in this tx, consequently the transaction fee is 0.0001.
But, the result of the operation using z_sendmany
was following:
SendTransaction: Transaction commit failed:: tx unpaid action limit exceeded: 1 action(s) exceeds limit of 0
Why and how can avoid this? I need to make it fully automated, so that all transactions will be in success, and avoid issues with insufficient funds, e.t.c.
Small remark, I always have only one recipient
Yes, it generally is, but than how can I recalculate the amount of money I need to send, so that I will not face the Insufficient funds
issue?
There are 3 logical actions. Orchard actions are padded to a min of 2.
So, every time I need to work with orchard actions, I need to calculate in the following way:
1 + orchard actions, right? or we need to make orchard actions equal to 2, only in case if we have at least one orchard action, and the sum of this actions is less then 2?
It’s #actions = max(t_in, t_out) + pad(max(s_in, s_out)) + pad(max(o_in, o_out))
where pad(x) = x == 1 ? 2 : x
Thank you so much, I really appreciate your help
A post was merged into an existing topic: ZECWallet Lite stuck, won’t send
I can not send zcash from atomic wallet and Guarda web wallet and also trust wallet. I have errors on these applications and I have talked to technical support of every service. totally they said that there is an error on network and you should wait.
is that right?
That’s correct, the Zcash network updated and they have not updated their software.
So their software is no longer compatible to send transactions. You have to wait for them to fix it or move your funds to one of the wallets that is working.
A post was merged into an existing topic: YWallet technical support
How can I send to tex address from zcashd and zcash-cli? I have fully synced zcashd and imported my ZEC wallet, I can see the balance with getbalance, but neither sendtoaddress nor z_sendmany work:
sendtoaddress: Invalid Zcash transparent address: tex…
z_sendmany: unknown address format: tex…
Thanks!
The TEX address contains a transparent receiver that you can extract with z_listunifiedreceivers and you should be able to send to it. The zcashd internal wallet likely does/will not support TEX address logic simply because it’s being sunsetted and the current focus of development is on Zashi.
3 posts were split to a new topic: Help Compiling Zcash on Gentoo
i cannot answer again in that thread. as a new user, i’m under these limitations so how am i supposed to communicate any progress or snippet of code?