Skip to main content

getUnshieldedBalances

For the complete documentation index, see llms.txt

Midnight.js API Reference v4.0.4


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>