Skip to main content

measureRelayFee

HardKAS SDK


HardKAS SDK / tx-builder/src / measureRelayFee

Function: measureRelayFee()

measureRelayFee(input): object

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

The fee the node relays this transaction at: the network's minimum rate per gram of COMPUTE mass, priced by the SDK on the same transaction with amounts so large that storage mass vanishes. rusty-kaspad 2.1.0 rejects below it ("…required amount of N for compute mass M") and relayed storage-bound transactions paying only this when measured on 2026-09-29; the Generator never pays less. Storage mass still bounds standardness (measureUpstreamMass's standard).

Parameters​

input​

UpstreamMassInput

Returns​

object

computeMass​

computeMass: bigint

relayFeeSompi​

relayFeeSompi: bigint