HTTP endpoints
Get vault events
Paginated vault deposit and withdrawal events.
Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| vault | yes | string (hex) | Optional vault address filter. |
| account | yes | string (hex) | Optional account address filter. |
| roundFrom | yes | string | null |
| roundTo | yes | string | null |
| pageNumber | yes | integer | Zero-based page number. Accepts either a number or a numeric string. |
| pageSize | yes | integer | Page size (number of items per page). Accepts either a number or a numeric string. |
Response fields
| Parameter | Required | Type | Description |
|---|---|---|---|
events | yes | object[] | Vault events returned for the selected filters. |
events[].account | yes | string (hex) | Account associated with the event. |
events[].amount | yes | string | Absolute collateral amount in dollar units. |
events[].assetId | yes | integer | — |
events[].eventIndex | yes | integer (int32) | Event index within the round. |
events[].eventType | yes | string | Event type exposed to clients (deposit or withdraw for vault flows). |
events[].round | yes | integer (int64) | — |
events[].shares | yes | string | Signed share delta stored in the vault event row. |
events[].timestamp | yes | integer (int64) | — |
events[].txHash | yes | string (hex) | Transaction hash as a hex string. |
events[].txIndex | yes | integer (int32) | Transaction index within the round. |
events[].vault | yes | string (hex) | Vault address. |
pageNumber | yes | integer | — |
pageSize | yes | integer | — |
Response example
A sample 200 response body is attached to this operation as an OpenAPI example — see the Example panel on this page.
GET
Get vault events
Path Parameters
Optional vault address filter.
Optional account address filter.
Optional start round (inclusive). If provided, roundTo should also be provided.
Optional end round (inclusive). If provided, roundFrom should also be provided.
Zero-based page number. Accepts either a number or a numeric string.
Required range:
x >= 0Page size (number of items per page). Accepts either a number or a numeric string.
Required range:
x >= 0Get vault events