Skip to content

@armada/sdk / index / encodeYieldRedeemBinding

Function: encodeYieldRedeemBinding() ​

encodeYieldRedeemBinding(npk, encryptedBundle, shieldKey, feeNpk, feeEncryptedBundle, feeShieldKey, feeAmount): `0x${string}`

Defined in: src/tx/adapt-params.ts:70

Bind the user's re-shield destination + the broadcaster fee-shield for a yield redeem/withdraw (matches YieldAdaptParams.encode/7). Produces a DIFFERENT commitment than the deposit overload.

Parameters ​

npk ​

bigint

encryptedBundle ​

readonly [string, string, string]

shieldKey ​

string

feeNpk ​

bigint

feeEncryptedBundle ​

readonly [string, string, string]

feeShieldKey ​

string

feeAmount ​

bigint

Returns ​

`0x${string}`