@armada/sdk / index / BuildWitnessParams
Interface: BuildWitnessParams
Defined in: src/tx/witness.ts:116
Properties
inputs
readonlyinputs: readonlyWitnessInput[]
Defined in: src/tx/witness.ts:117
outputs
readonlyoutputs: readonlyWitnessOutputRequest[]
Defined in: src/tx/witness.ts:118
tokenAddress
readonlytokenAddress:`0x${string}`
Defined in: src/tx/witness.ts:119
sender
readonlysender:WitnessSenderContext
Defined in: src/tx/witness.ts:120
signer
readonlysigner:SpendSigner
Defined in: src/tx/witness.ts:121
summary
readonlysummary:PlanSummary
Defined in: src/tx/witness.ts:123
The plan summary — forwarded to the signer as the fully-bound intent context.
merkleRoot
readonlymerkleRoot:bigint
Defined in: src/tx/witness.ts:124
treeNumber
readonlytreeNumber:number
Defined in: src/tx/witness.ts:125
chainType
readonlychainType:number
Defined in: src/tx/witness.ts:126
chainId
readonlychainId:number
Defined in: src/tx/witness.ts:127
minGasPrice?
readonlyoptionalminGasPrice?:bigint
Defined in: src/tx/witness.ts:128
unshield?
readonlyoptionalunshield?:number
Defined in: src/tx/witness.ts:130
UnshieldFlag for boundParams (0 NONE / 1 UNSHIELD / 2 OVERRIDE).
unshieldOutput?
readonlyoptionalunshieldOutput?:object
Defined in: src/tx/witness.ts:135
When unshielding: the public output. Built as UnshieldNoteERC20 (npk = recipient) and appended as the LAST commitment (no ciphertext — it's public). unshield (the flag) must be set alongside.
recipient
readonlyrecipient:`0x${string}`
value
readonlyvalue:bigint
adaptContract?
readonlyoptionaladaptContract?:`0x${string}`
Defined in: src/tx/witness.ts:136
adaptParams?
readonlyoptionaladaptParams?:`0x${string}`
Defined in: src/tx/witness.ts:137
decodedAdaptParams?
readonlyoptionaldecodedAdaptParams?:CctpBinding
Defined in: src/tx/witness.ts:139
Decoded cross-chain binding (inspection-only) surfaced to the signer as boundParams.decodedAdaptParams.