getStakeBalance
Description:
Getting user's balance in the vault
Arguments:
| Name | Type | Required | Description |
|---|---|---|---|
| userAddress | string | Yes | The user address |
| vaultAddress | string | Yes | The address of the vault |
Returns:
type Output = {
assets: bigint
totalEarnedAssets: bigint
}
| Name | Description |
|---|---|
assets | Balance in ETH |
totalEarnedAssets | Total earned rewards |
Example:
await sdk.vault.getStakeBalance({
userAddress: '0x...',
vaultAddress: '0x...',
})