Skip to main content
Get the vault share balance for a wallet. Shares represent your stake in the Zyfai Vault.

Signature

Parameters

Returns

Vault shares balance and token symbol

Return Type

Example

Check Before Withdrawal

Notes

  • If no userAddress is provided, uses the connected wallet address
  • Shares are returned as bigint in the smallest unit (wei)
  • The symbol is the vault’s share token symbol (e.g., “zyUSDC”)
  • Shares are minted when you deposit via vaultDeposit
  • Shares are burned when you withdraw via vaultWithdraw