Skip to main content

getUnshieldedBalances

Midnight.js API Reference v3.1.0


Midnight.js API Reference / @midnight-ntwrk/midnight-js-contracts / getUnshieldedBalances

Function: getUnshieldedBalances()

getUnshieldedBalances(publicDataProvider, contractAddress): Promise<UnshieldedBalances>

Fetches the unshielded balances associated with a specific contract address.

Parameters

publicDataProvider

PublicDataProvider

The provider to use to fetch the unshielded balances from the blockchain.

contractAddress

string

The ledger address of the contract.

Returns

Promise<UnshieldedBalances>