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 = {
assets: bigint
totalEarnedAssets: bigint
}
NameDescription
assetsBalance in ETH
totalEarnedAssetsTotal earned rewards

Example:

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