Skip to main content

GeneratorPlanRequest

HardKAS SDK


HardKAS SDK / tx-builder/src / GeneratorPlanRequest

Interface: GeneratorPlanRequest

Defined in: packages/tx-builder/src/generator-plan.ts:33

Properties​

changeAddress​

readonly changeAddress: string

Defined in: packages/tx-builder/src/generator-plan.ts:38


feeRate?​

readonly optional feeRate?: bigint

Defined in: packages/tx-builder/src/generator-plan.ts:43

Sompi per gram. At or below the relay minimum (100) the transaction pays the minimum, charged on the compute mass; above it the rate is priority, priced on max(compute, storage) as the mempool ranks it (FEE-POLICY-1).


networkId?​

readonly optional networkId?: string

Defined in: packages/tx-builder/src/generator-plan.ts:34


outputs​

readonly outputs: readonly object[]

Defined in: packages/tx-builder/src/generator-plan.ts:37

Payment outputs. Empty for a consolidation: every selected input goes to changeAddress.


payload?​

readonly optional payload?: string

Defined in: packages/tx-builder/src/generator-plan.ts:45

Transaction payload (hex); the Generator prices its mass.


syntheticIdentities?​

readonly optional syntheticIdentities?: boolean

Defined in: packages/tx-builder/src/generator-plan.ts:52

Plans the simulator's identities (aliases such as kaspa:sim_alice, mock-script, transaction ids that are not 64-hex, addresses of any network) under mass-equivalent simnet stand-ins and maps them back. Only for the simulator: on a real network an invalid identity must fail.


utxos​

readonly utxos: readonly Utxo[]

Defined in: packages/tx-builder/src/generator-plan.ts:35