Skip to main content

v1FeeMass

HardKAS SDK


HardKAS SDK / tx-builder/src / v1FeeMass

Function: v1FeeMass()

v1FeeMass(masses): bigint

Defined in: packages/tx-builder/src/v1-mass.ts:216

mining/src/mempool/check_transaction_standard.rs: the mass the relay fee is charged on is the larger of the compute mass and the transient mass normalized by the block-limit cofactor (compute limit / transient limit = 0.5, rounded up as the node's ceil). The storage mass has no relay-fee floor of its own.

Parameters​

masses​

Pick<V1NonContextualMasses, "computeMass" | "transientMass">

Returns​

bigint