Skip to main content
Room ID: accounts
Endpoint: wss://staging-api.struct.to/ws
Wallet and token balance updates. Subscribe with at least one trader or token. Native balance updates arrive only when include_native is true.

Subscribe

Need at least one trader or token plus a chain (chain, chain_id, chains, or chain_ids). Match any of traders or tokens.

Filters

Provide either chain or chain_id. Do not send both.

Example

Events

Every subscribe and unsubscribe_all is answered with chain_accounts_stream_subscribe_response (keys are always long):
The room emits account_update for token accounts and account_native_update for native balances. Pick Response (Long) or Response (Short) in the right-hand panel. WebSocket defaults to short. See long and short field names.
Last modified on September 27, 2026