Rebuilds the note commitment tree from the full on-chain note set and
witnesses the given recovered notes against it, producing the spendable
notes and the shared anchor required by spend transitions (shieldedTransfer,
unshield, shieldedWithdrawal, identityCreateFromShieldedPool).
Pass the complete note set from getShieldedEncryptedNotes as notes
(the commitment tree leaves) and the notes you want to spend from
recoverNotes as recovered. This keeps the whole spend flow inside
the SDK — no need to construct a commitment tree yourself.
{ShieldedEncryptedNote[]} - full on-chain note set (the tree leaves)
{RecoveredNoteWASM[]} - the recovered notes to spend
Helper function for building and proving shielded (Orchard) transitions. It may be used to create any of 7 shielded transition actions:
Spends require a {SpendableNoteWASM} witnessed against an on-chain anchor.
Retrieves the most recent anchor (note commitment tree root) of the shielded pool.
Retrieves the set of valid anchors (note commitment tree roots) currently accepted by the shielded pool.
Retrieves a batch of shielded encrypted notes from the shielded pool, starting from the given note index.
Returns an array of encrypted notes, each containing the nullifier, note commitment (cmx), encrypted note payload and value commitment (cvNet).
{bigint} - index of the first note to fetch
{number} - amount of notes to fetch
Retrieves the total count of notes (leaves) in the shielded notes commitment tree. Useful as a denominator for shielded sync progress.
Checks the spent status of the given nullifiers in the shielded pool.
Returns an array of statuses, each containing the nullifier and whether it has already been spent.
{Uint8Array[]} - nullifiers to check
Retrieves the total balance currently held in the shielded pool.
Set bindings instance of builder Needed for custom builder load, because ShieldedBuilderWASM inits very slow on old hardware
Optionalbuilder: ShieldedBuilderWASMRecovers the notes owned by a wallet from a set of shielded encrypted notes
(as returned by getShieldedEncryptedNotes) by trial-decrypting each
with the viewing key derived from the seed (ZIP-32 m/32'/coinType'/account').
Only notes addressed to the wallet are returned, each with its global leaf
position (index) in the commitment tree.
{ShieldedEncryptedNote[]} - shielded encrypted notes to scan
{Uint8Array} - BIP-39 seed bytes
{number} - ZIP-32 account index
Shielded controller for requesting information about shielded pool