Skip to main content

planSingleOutputSpend

HardKAS SDK


HardKAS SDK / tx-builder/src / planSingleOutputSpend

Function: planSingleOutputSpend()

planSingleOutputSpend(input): object

Defined in: packages/tx-builder/src/index.ts:275

Fee for spending inputs entirely into one output (sweep/consolidation): the output is the inputs minus the fee, and its amount feeds storage mass, so the fee is settled against the SDK for the transaction as built.

Parameters​

input​

feeRateSompiPerMass​

bigint

inputs​

readonly object[]

networkId?​

string

toAddress​

string

Returns​

object

feeSompi​

feeSompi: bigint

mass​

mass: bigint

sendSompi​

sendSompi: bigint