Skip to main content

checkSignedAgainstPlan

HardKAS SDK


HardKAS SDK / artifacts/src / checkSignedAgainstPlan

Function: checkSignedAgainstPlan()

checkSignedAgainstPlan(signedTransaction, plan): SignedPlanCheck

Defined in: packages/artifacts/src/submission-fee.ts:166

Is the signed transaction THE transaction the plan authorized? Inputs must match 1:1 by outpoint; outputs must be exactly the plan's payment outputs followed by its change (same order, same amounts, same destination script). A payload that cannot be parsed is insufficient; one that parses and differs is a mismatch.

Parameters​

signedTransaction​

format?​

string

payload?​

unknown

plan​

PlanLike

Returns​

SignedPlanCheck