---
title: Vault Events
description: API reference for vault event parsing functions
url: https://docs.intuition.systems/docs/v1/protocol/events/vault-events
markdown_url: https://docs.intuition.systems/docs/v1/protocol/events/vault-events.md
version: V1
llms_index: https://docs.intuition.systems/docs/v1/llms.txt
---

Functions for parsing vault-related events from transaction receipts.

## eventParseDeposited

Parse Deposited events from a transaction.

### eventParseDeposited - Returns

```typescript
Promise<Array<{
  args: {
    sender: Address
    receiver: Address
    vaultId: bigint
    assets: bigint
    shares: bigint
  }
}>>
```

### eventParseDeposited - Example

```typescript
import { eventParseDeposited } from '@0xintuition/protocol'

const events = await eventParseDeposited(publicClient, txHash)

events.forEach((event) => {
  console.log('Vault ID:', event.args.vaultId)
  console.log('Deposited:', formatEther(event.args.assets))
  console.log('Shares received:', formatEther(event.args.shares))
})
```

## eventParseRedeemed

Parse Redeemed events from a transaction.

### eventParseRedeemed - Returns

```typescript
Promise<Array<{
  args: {
    sender: Address
    receiver: Address
    vaultId: bigint
    assets: bigint
    shares: bigint
  }
}>>
```

### eventParseRedeemed - Example

```typescript
import { eventParseRedeemed } from '@0xintuition/protocol'

const events = await eventParseRedeemed(publicClient, txHash)

events.forEach((event) => {
  console.log('Vault ID:', event.args.vaultId)
  console.log('Shares redeemed:', formatEther(event.args.shares))
  console.log('Assets received:', formatEther(event.args.assets))
})
```

## eventParseSharePriceChanged

Parse SharePriceChanged events.

### eventParseSharePriceChanged - Returns

```typescript
Promise<Array<{
  args: {
    vaultId: bigint
    oldPrice: bigint
    newPrice: bigint
  }
}>>
```

### eventParseSharePriceChanged - Example

```typescript
import { eventParseSharePriceChanged } from '@0xintuition/protocol'

const events = await eventParseSharePriceChanged(publicClient, txHash)

events.forEach((event) => {
  console.log('Vault ID:', event.args.vaultId)
  console.log('Old price:', formatEther(event.args.oldPrice))
  console.log('New price:', formatEther(event.args.newPrice))
})
```

## See Also

- [Atom Events](https://docs.intuition.systems/docs/v1/protocol/events/atom-events)
- [Triple Events](https://docs.intuition.systems/docs/v1/protocol/events/triple-events)
- [Examples: Event Parsing](https://docs.intuition.systems/docs/v1/protocol/examples/event-parsing)
