@armada/sdk / index / buildRedeemAndShieldCalldata
Function: buildRedeemAndShieldCalldata()
buildRedeemAndShieldCalldata(
tx,params):TransactCalldata
Defined in: src/tx/wrappers.ts:78
redeemAndShield(tx, npk, shieldCiphertext, feeNpk, feeShieldCiphertext, feeAmount) — unshield vault shares into the adapter, redeem, and re-shield (assets − feeAmount) to npk and feeAmount to the relayer's feeNpk. to is the ArmadaYieldAdapter. The proof must bind boundParams.adaptParams = encodeYieldRedeemBinding(...) over both notes. (The relayer fee here is contract-side — NOT a broadcaster output inside the Transaction.)
Parameters
tx
params
adapterAddress
`0x${string}`
npk
bigint
shieldCiphertext
feeNpk
bigint
feeShieldCiphertext
feeAmount
bigint