Search

A technology, a device or an article

Zcash fees count the shape of a transaction

ZIP317 R0 links conventional ZEC fees to public transaction structure and padding while leaving inclusion time to separate processing policies.

Paper collage with paired red tokens and differently sized field strips
ITNWS AI-generated conceptual illustration. Tokens evoke structure, not payment value or real user data.ITNWS · image_gen · Original ITNWS AI-generated conceptual editorial illustration

The amount being transferred can matter less to a processing bill than the construction of the payment. Two wallets send the same amount of ZEC while assembling transactions from different inputs and outputs. Expecting the same fee seems natural to someone counting money. The network also processes data, proofs, and operations. ZIP317 connects the conventional fee to publicly computable transaction structure, rather than charging a percentage of the transferred funds’ market value.

This is a technical reading of documents checked on October 24, 2026. It contains no current dollar quotation, recommendation to make a transfer, or report of money actually sent. Every numerical transaction shape below is hypothetical. We did not open a wallet, construct a transaction, or change a running node’s or pool’s policies. The subject is what enters the calculation, why its name is qualified, and which promises cannot be deduced from its result.

The main source is ZIP317, Proportional Transfer Fee Mechanism. In the checked document, Revision 0 is marked Active, while Revision 1 associated with NU6.3 and Revision 2 are marked Draft. That distinction defines our calculations: they use R0. A proposed extension appearing on the same page is not evidence of activation. Mixing revisions is particularly easy when future terminology appears in searches beside established wallet rules.

The amount stays the same while the construction changes

Under R0, marginal_fee is 5000 zatoshis per logical action and grace_actions is two. The conventional fee is 5000 × max(2, logical_actions). One ZEC contains 100 million zatoshis, making the lowest result of this formula 10000 zatoshis, or 0.0001 ZEC. That is the floor of this particular conventional calculation. It is not a declaration of a universal consensus rule prohibiting every other fee in every otherwise valid transaction.

The key word is logical. A logical action is not necessarily a recipient visible to the user, nor is it an arbitrary CPU instruction. Different transaction components have their own contribution rules, and those contributions are then added. “I paid one person, so there was one action” skips important structure. The wallet can select several inputs, create change, and include components from different pools in the same transaction.

For the transparent component, ZIP317 takes the maximum of two rounded-up ratios: the total size of the specified input field divided by 150 bytes, and the total size of the specified output field divided by 34 bytes. These defined fields enter the calculation, rather than the complete serialized transaction. The construction accounts for script-size differences as well. Recipient count alone does not fully describe it, and dividing every serialized byte by 150 would implement a different formula.

Take a hypothetical transparent-only payment with 300 bytes in the defined input field and 68 bytes in the output field. The ratios give ceil(300/150) = 2 and ceil(68/34) = 2. The transparent contribution is two, the total logical-action count is two, and the conventional fee is 10000 zatoshis. Those sizes were selected for arithmetic illustration. They do not come from a real transaction or establish the precise size of every instance of any particular script type.

Now preserve the amount delivered to the recipient but choose 900 input-field bytes and the same 68 output-field bytes. The contribution becomes max(6, 2) = 6, giving a conventional fee of 30000 zatoshis, or 0.0003 ZEC. The recipient’s money has not become three times more valuable. The structure financing the payment changed. The difference is derived from the formula, rather than inferred for a real user’s operation from a screenshot of its amount.

In practice, incoming-payment history can produce this distinction. A balance can consist of many separate spendable elements, rather than one indivisible account containing the displayed total. Input selection affects the resulting transaction shape. Equal balances therefore do not establish identical conventional calculations for the next payment. Explaining the fee requires the selected construction, rather than only the number beside ZEC. The final transaction should also be distinguished from an interface’s preliminary estimate.

A recipient label in a wallet need not account for change the way the protocol accounts for outputs. Returning a remainder is part of a transaction even if the user does not regard it as another payment. More outputs consequently do not automatically mean more external recipients. The formula counts public components under its stated rules; it need not understand the economic role the wallet owner privately assigns to each output.

Shielded components retain a public calculation

For Sapling, R0 uses the larger of spend count and output count. For Orchard, the contribution is its number of Actions. An Action combines input and output roles, so simply adding every named input and output would distort comparisons. The historical Sprout contribution is twice the number of JoinSplits. These definitions produce a common logical quantity without claiming that every transaction form has identical internal structure or physical verification time.

Suppose another hypothetical transaction has a transparent contribution of two, a Sapling contribution of three, and an Orchard contribution of two. Their total is seven, making the conventional fee 35000 zatoshis, or 0.00035 ZEC. Contributions are added; we do not take one maximum across all pools. Confusing the maximum within a component with the sum between components understates this calculation. The example remains within R0 and includes no contribution from a draft extension.

Padding helps explain the rules. A shielded transaction can contain additional elements to reduce leakage about its real input and output structure. If the fee tracked private internal details exactly, the fee itself could reveal information the padding is meant to conceal. The document therefore requires the conventional fee to be computable from public data. The calculation follows the public shape rather than requiring secret explanations of individual internal elements to justify a smaller bill.

The grace_actions floor supports that purpose for small transactions. Moving from one logical action to two does not increase max(2, logical_actions). It is not an allowance of two actions to subtract from every large transaction. Seven actions produce seven marginal-fee units, rather than five. Everyday language about an allowance can suggest a discount coupon; the documented operation establishes a lower bound for the multiplier instead of subtracting a constant number.

Watercolor transparent pockets contain differently sized groups of paired disks
ITNWS AI-generated conceptual illustration. Groups evoke logical actions and padding; this is not an actual fee quotation. — ITNWS · image_gen · Original ITNWS AI-generated conceptual editorial illustration

The watercolor pockets hold differently sized groups of paired disks. This is a newly created conceptual image of structure and padding, rather than a visualization of a real transaction. The number of illustrated objects is no fee quotation and identifies nobody’s inputs. The picture helps distinguish transferred value from outward construction. An actual calculation needs real fields and an applicable revision, neither of which an artistic image supplies.

A fee cannot automatically recover the number of real people involved in a shielded payment. The floor, padding, and component rules make that inference too strong. Public computability does not make every underlying economic relationship public. The formula instead seeks to avoid creating another channel of knowledge about hidden structure. An observer should not replace a measured logical quantity with an attractive but unsupported story about the wallet owner’s private activity.

The Zcash protocol specification describes transaction fields and validation rules, a separate layer from the recommendation for fee size. The zcash_primitives ZIP317 implementation documentation supplies a primary source about software calculation. A particular application still depends on its library version and how that library is used. A documented function does not establish that an arbitrary installed wallet invokes it with the expected parameters in its current release.

Conventional does not reserve a place in a block

ZIP317 explicitly distinguishes its conventional fee from a consensus requirement to follow the formula. Wallets receive a recommendation, while nodes and block producers apply relevant policies. A correct arithmetic result does not oblige the next block to include the transaction. Other validation rules must be satisfied, the transaction must reach relevant participants, and a producer must select it. A formula is not a timetable promising confirmation at a particular minute.

The document discusses relay and block-template selection, including unpaid actions. These mechanisms should not be recast as a universal queue in which every additional zatoshi permanently buys a higher position. Even the recommended algorithm has conditions and limits. A specific block producer can follow its own policy. Without observing the implementation, this article cannot announce that one documented algorithm precisely describes every miner and node at this moment.

ZIP401 on mempool denial-of-service protection adds another context: node memory is bounded, transactions can be evicted under defined rules, and paying below the conventional fee contributes to an eviction-weight penalty. One node’s mempool is not a permanent shared waiting ledger for the network. Acceptance through a local interface does not imply indefinite retention by every participant. This limits a wallet’s promise even if the arithmetic fee calculation itself is correct.

Increasing a fee is also not a universal remedy for delay. An invalid construction, conflicting spend, an unsynchronized local view, or simply observing the wrong state can require different explanations. Each diagnosis needs suitable evidence. This article diagnoses no actual transfer and does not propose paying more for guaranteed acceleration. It explains why a discussion of the formula must remain connected to transaction structure and processing policy rather than become an unsupported promise of an outcome.

Care is especially necessary with a changing document. Draft beside Ironwood or memo bundles describes an extension under development, not automatically R0 behavior. Today’s source-check date establishes when the document was read, rather than deploying draft mechanisms to the network. The calculation framework remains consistent across every example so that the reader does not receive a mixture of active conventional rules and future fields merely because they already occupy one page.

The bill can now receive a precise description: the applicable conventional-fee formula evaluated for a specified public transaction structure. It explains why an equal ZEC payment need not have an equal fee while promising no inclusion time. The user’s funds, the operation’s outward construction, and processing policy remain connected but distinct quantities. Understanding their relationship is more useful than memorizing one ordinary fee and treating every deviation as proof that a wallet is wrong.

Sources & documentation

  1. Zcash ZIP317: proportional transfer fee mechanism ↗
  2. Zcash ZIP401: mempool size limiting ↗
  3. Zcash protocol specification ↗
  4. librustzcash ZIP317 fee implementation ↗