Skip to main content

getStakeBalance

Description:

Getting user's balance in the vault

Arguments:

NameTypeRequiredDescription
userAddressstringYesThe user address
vaultAddressstringYesThe address of the vault

Returns:

type Output = {
shares: bigint
assets: bigint
}
NameDescription
assetsBalance in ETH

Example:

await sdk.vault.getStakeBalance({
userAddress: '0x...',
vaultAddress: '0x...',
})