Skip to content

@armada/sdk / index / verifyShieldFeeNote

Function: verifyShieldFeeNote()

verifyShieldFeeNote(params): { value: bigint; } | undefined

Defined in: src/tx/shield-fee.ts:70

npk-reconstruction shield-fee verification (SPEC §4.6, #410 relayer primitive). Given the shield requests, the relayer's own master public key, and the per-note random it was handed, find the note addressed to the relayer (its reconstructed npk matches a request's preimage.npk) and confirm the declared value is at least minValue (the advertised fee) — without decrypting anything. Returns the matched note's declared value, or undefined if no note is addressed to the relayer or it underpays. (The pool then deducts the shield fee from this declared value; the SDK's grossUpShieldFee is what makes the post-fee net still cover the relayer's target.)

Parameters

params

shieldRequests

readonly ShieldRequest[]

broadcasterMasterPublicKey

bigint

random

string

minValue

bigint

Returns

{ value: bigint; } | undefined