Skip to main content

planWithGenerator

HardKAS SDK


HardKAS SDK / tx-builder/src / planWithGenerator

Function: planWithGenerator()

planWithGenerator(request): Promise<GeneratorPlanOutcome>

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

Plans ONE transaction with the Generator, or refuses with a HardKAS error. The Generator takes the UTXOs in the order given, which is the order their source listed them in: HardKAS adds no selection policy of its own.

Parameters​

request​

GeneratorPlanRequest

Returns​

Promise<GeneratorPlanOutcome>