Skip to main content

Interface: BalanceUpdatedEvent

Gala Launchpad SDK 9.0.0-rc.5


Gala Launchpad SDK 9.0.0-rc.5 / index / BalanceUpdatedEvent

Interface: BalanceUpdatedEvent

Defined in: packages/launchpad-sdk/dist/types/websocket-events.dto.d.ts:203

Emitted when a user's balance is updated after a trade. Broadcast to user-specific room (user:{address}) - private to user only. Carries the trade's input and output amounts; the backend does not send the resulting balances.

Since​

7.0.0 - React Query cache integration

Properties​

inputAmount​

inputAmount: string

Defined in: packages/launchpad-sdk/dist/types/websocket-events.dto.d.ts:211

Amount of input currency (string format)


outputAmount​

outputAmount: string

Defined in: packages/launchpad-sdk/dist/types/websocket-events.dto.d.ts:213

Amount of output currency (string format)


timestamp​

timestamp: string

Defined in: packages/launchpad-sdk/dist/types/websocket-events.dto.d.ts:215

ISO 8601 timestamp of when the balance was updated


tokenName​

tokenName: string

Defined in: packages/launchpad-sdk/dist/types/websocket-events.dto.d.ts:207

Token name for which balance changed


tradeType​

tradeType: "BUY" | "SELL"

Defined in: packages/launchpad-sdk/dist/types/websocket-events.dto.d.ts:209

Trade type that caused the balance update: BUY or SELL


userAddress​

userAddress: string

Defined in: packages/launchpad-sdk/dist/types/websocket-events.dto.d.ts:205

Wallet address of the user whose balance was updated