Skip to main content

getBalanceFromUtxos()

getBalanceFromUtxos() is a utility function from privacycash/utils used to calculate the total balance from a set of SOL UTXOs (Unspent Transaction Outputs).

Parameters

Return Value

The function returns an object containing the balance information:

Example Usage


getUtxos()

getUtxos() is used to fetch all valid private UTXOs for a given user.

Parameters

Example Usage


getBalanceFromUtxosSPL()

getBalanceFromUtxosSPL() calculates the total balance from a set of SPL token UTXOs.

Parameters

Return Value


getUtxosSPL()

getUtxosSPL() is used to fetch all valid private SPL token UTXOs for a given user and specific token mint.

Parameters

Example Usage