Skip to main content

V1PlanInput

HardKAS SDK


HardKAS SDK / tx-builder/src / V1PlanInput

Interface: V1PlanInput

Defined in: packages/tx-builder/src/v1-plan.ts:61

Properties​

address​

readonly address: string

Defined in: packages/tx-builder/src/v1-plan.ts:64


amountSompi​

readonly amountSompi: string

Defined in: packages/tx-builder/src/v1-plan.ts:63


blockDaaScore?​

readonly optional blockDaaScore?: string

Defined in: packages/tx-builder/src/v1-plan.ts:67


computeBudget​

readonly computeBudget: number

Defined in: packages/tx-builder/src/v1-plan.ts:73

u16; script units allowed = budget × 10,000 + 9,999. Explicit: there is no estimator.


contract?​

readonly optional contract?: V1ContractRef

Defined in: packages/tx-builder/src/v1-plan.ts:75

Required for p2sh and covenant inputs; absent for p2pk.


covenantId?​

readonly optional covenantId?: string

Defined in: packages/tx-builder/src/v1-plan.ts:70

Set for a covenant's UTXO (the node reports it).


isCoinbase?​

readonly optional isCoinbase?: boolean

Defined in: packages/tx-builder/src/v1-plan.ts:68


kind​

readonly kind: V1InputKind

Defined in: packages/tx-builder/src/v1-plan.ts:71


outpoint​

readonly outpoint: object

Defined in: packages/tx-builder/src/v1-plan.ts:62

index​

readonly index: number

transactionId​

readonly transactionId: string


scriptPublicKey​

readonly scriptPublicKey: string

Defined in: packages/tx-builder/src/v1-plan.ts:66

"<2-byte version><script>" hex, as the node lists it.


sequence?​

readonly optional sequence?: string

Defined in: packages/tx-builder/src/v1-plan.ts:82

V1-ENGINE-2 · the input's sequence (u64, decimal), for a contract with a relative time lock (this.age…); 0 when absent. The node decides whether the lock is met (SEQUENCE_LOCK_REJECTED); the signature hash commits to it.


signer?​

readonly optional signer?: string

Defined in: packages/tx-builder/src/v1-plan.ts:77

The account whose key signs a p2pk input.