Room ID:
Endpoint:
lighthouse Endpoint:
wss://staging-api.struct.to/wsSubscribe
Choose one or more chains, a cadence and optionally timeframes. Unavailable chains do not delay updates from other chains.Filters
| Filter | Type | Required | Description |
|---|---|---|---|
chain | string | No* | Chain name: solana, bnb, base, ethereum, robinhood, arc |
chain_id | integer | No* | Chain id: -1, 56, 8453, 1, 4663, 5042 |
chains | string[] | string | No | Chain names. Combined with chain / chain_id / chain_ids |
chain_ids | integer[] | string | No | Chain ids. Combined with chain / chain_id / chains |
interval_ms | integer | No | 500, 1000, 2500, 5000, 10000. Default 500 |
timeframes | string[] | No | 5m, 1h, 6h, 24h, all. Empty = all |
chain, chain_id, chains, and/or chain_ids. Selections are combined and deduplicated.
Example
{
"type": "join_room",
"payload": {
"room_id": "lighthouse"
}
}
{
"type": "room_message",
"payload": {
"room_id": "lighthouse",
"message": {
"action": "subscribe",
"chains": [
"solana",
"robinhood"
],
"interval_ms": 1000,
"timeframes": [
"5m",
"1h",
"6h",
"24h"
]
}
}
}
Events
The room emitslighthouse_update. data is an array with the same entry format as REST: chain, chain_id, timeframe, overall, and protocols. Merge entries by chain_id and timeframe, keeping other selected entries. Send another subscribe to replace the selection on the same connection; discard chains you removed. Send unsubscribe_all without filters to stop. Subscribe acknowledgements include chains, chain_ids, interval_ms, timeframes, and rejected. Pick Response (Long) or Response (Short) in the right-hand panel. WebSocket defaults to short. See long and short field names.
{
"type": "lighthouse_update",
"room_id": "lighthouse",
"interval_ms": 1000,
"timeframes": [
"5m",
"1h",
"6h",
"24h"
],
"data": [
{
"chain": "robinhood",
"chain_id": 4663,
"timeframe": "5m",
"overall": {
"total_created": 48,
"total_migrated": 12,
"total_volume_usd": 428000,
"total_volume_native": 288.4,
"total_transactions": 1902,
"total_fees_native": 0.124,
"total_bot_fees_native": 0.015,
"pool_count": 36,
"created_change_pct": 12.4,
"migrated_change_pct": 8.1,
"volume_change_pct": 19.03,
"transactions_change_pct": 6.2,
"fees_change_pct": 4.8,
"bot_fees_change_pct": 2.1,
"pool_count_change_pct": 3.3
},
"protocols": [
{
"protocol": "PonsV2",
"total_created": 48,
"total_migrated": 12,
"total_volume_usd": 428000,
"total_volume_native": 288.4,
"total_transactions": 1902,
"total_fees_native": 0.124,
"total_bot_fees_native": 0.015,
"pool_count": 36,
"created_change_pct": 12.4,
"migrated_change_pct": 8.1,
"volume_change_pct": 19.03,
"transactions_change_pct": 6.2,
"fees_change_pct": 4.8,
"bot_fees_change_pct": 2.1,
"pool_count_change_pct": 3.3
}
]
},
{
"chain": "robinhood",
"chain_id": 4663,
"timeframe": "1h",
"overall": {
"total_created": 48,
"total_migrated": 12,
"total_volume_usd": 428000,
"total_volume_native": 288.4,
"total_transactions": 1902,
"total_fees_native": 0.124,
"total_bot_fees_native": 0.015,
"pool_count": 36,
"created_change_pct": 12.4,
"migrated_change_pct": 8.1,
"volume_change_pct": 19.03,
"transactions_change_pct": 6.2,
"fees_change_pct": 4.8,
"bot_fees_change_pct": 2.1,
"pool_count_change_pct": 3.3
},
"protocols": [
{
"protocol": "PonsV2",
"total_created": 48,
"total_migrated": 12,
"total_volume_usd": 428000,
"total_volume_native": 288.4,
"total_transactions": 1902,
"total_fees_native": 0.124,
"total_bot_fees_native": 0.015,
"pool_count": 36,
"created_change_pct": 12.4,
"migrated_change_pct": 8.1,
"volume_change_pct": 19.03,
"transactions_change_pct": 6.2,
"fees_change_pct": 4.8,
"bot_fees_change_pct": 2.1,
"pool_count_change_pct": 3.3
}
]
},
{
"chain": "robinhood",
"chain_id": 4663,
"timeframe": "6h",
"overall": {
"total_created": 48,
"total_migrated": 12,
"total_volume_usd": 428000,
"total_volume_native": 288.4,
"total_transactions": 1902,
"total_fees_native": 0.124,
"total_bot_fees_native": 0.015,
"pool_count": 36,
"created_change_pct": 12.4,
"migrated_change_pct": 8.1,
"volume_change_pct": 19.03,
"transactions_change_pct": 6.2,
"fees_change_pct": 4.8,
"bot_fees_change_pct": 2.1,
"pool_count_change_pct": 3.3
},
"protocols": [
{
"protocol": "PonsV2",
"total_created": 48,
"total_migrated": 12,
"total_volume_usd": 428000,
"total_volume_native": 288.4,
"total_transactions": 1902,
"total_fees_native": 0.124,
"total_bot_fees_native": 0.015,
"pool_count": 36,
"created_change_pct": 12.4,
"migrated_change_pct": 8.1,
"volume_change_pct": 19.03,
"transactions_change_pct": 6.2,
"fees_change_pct": 4.8,
"bot_fees_change_pct": 2.1,
"pool_count_change_pct": 3.3
}
]
},
{
"chain": "robinhood",
"chain_id": 4663,
"timeframe": "24h",
"overall": {
"total_created": 48,
"total_migrated": 12,
"total_volume_usd": 428000,
"total_volume_native": 288.4,
"total_transactions": 1902,
"total_fees_native": 0.124,
"total_bot_fees_native": 0.015,
"pool_count": 36,
"created_change_pct": 12.4,
"migrated_change_pct": 8.1,
"volume_change_pct": 19.03,
"transactions_change_pct": 6.2,
"fees_change_pct": 4.8,
"bot_fees_change_pct": 2.1,
"pool_count_change_pct": 3.3
},
"protocols": [
{
"protocol": "PonsV2",
"total_created": 48,
"total_migrated": 12,
"total_volume_usd": 428000,
"total_volume_native": 288.4,
"total_transactions": 1902,
"total_fees_native": 0.124,
"total_bot_fees_native": 0.015,
"pool_count": 36,
"created_change_pct": 12.4,
"migrated_change_pct": 8.1,
"volume_change_pct": 19.03,
"transactions_change_pct": 6.2,
"fees_change_pct": 4.8,
"bot_fees_change_pct": 2.1,
"pool_count_change_pct": 3.3
}
]
}
]
}
{
"type": "lighthouse_update",
"room_id": "lighthouse",
"interval_ms": 1000,
"timeframes": [
"5m",
"1h",
"6h",
"24h"
],
"data": [
{
"c": "robinhood",
"ci": 4663,
"tf": "5m",
"o": {
"tc": 48,
"tm": 12,
"tvu": 428000,
"tvn": 288.4,
"tt": 1902,
"tfn": 0.124,
"tbfn": 0.015,
"pc": 36,
"ccp": 12.4,
"mcp": 8.1,
"vcp": 19.03,
"txcp": 6.2,
"fcp": 4.8,
"bfcp": 2.1,
"pccp": 3.3
},
"p": [
{
"pr": "PonsV2",
"tc": 48,
"tm": 12,
"tvu": 428000,
"tvn": 288.4,
"tt": 1902,
"tfn": 0.124,
"tbfn": 0.015,
"pc": 36,
"ccp": 12.4,
"mcp": 8.1,
"vcp": 19.03,
"txcp": 6.2,
"fcp": 4.8,
"bfcp": 2.1,
"pccp": 3.3
}
]
},
{
"c": "robinhood",
"ci": 4663,
"tf": "1h",
"o": {
"tc": 48,
"tm": 12,
"tvu": 428000,
"tvn": 288.4,
"tt": 1902,
"tfn": 0.124,
"tbfn": 0.015,
"pc": 36,
"ccp": 12.4,
"mcp": 8.1,
"vcp": 19.03,
"txcp": 6.2,
"fcp": 4.8,
"bfcp": 2.1,
"pccp": 3.3
},
"p": [
{
"pr": "PonsV2",
"tc": 48,
"tm": 12,
"tvu": 428000,
"tvn": 288.4,
"tt": 1902,
"tfn": 0.124,
"tbfn": 0.015,
"pc": 36,
"ccp": 12.4,
"mcp": 8.1,
"vcp": 19.03,
"txcp": 6.2,
"fcp": 4.8,
"bfcp": 2.1,
"pccp": 3.3
}
]
},
{
"c": "robinhood",
"ci": 4663,
"tf": "6h",
"o": {
"tc": 48,
"tm": 12,
"tvu": 428000,
"tvn": 288.4,
"tt": 1902,
"tfn": 0.124,
"tbfn": 0.015,
"pc": 36,
"ccp": 12.4,
"mcp": 8.1,
"vcp": 19.03,
"txcp": 6.2,
"fcp": 4.8,
"bfcp": 2.1,
"pccp": 3.3
},
"p": [
{
"pr": "PonsV2",
"tc": 48,
"tm": 12,
"tvu": 428000,
"tvn": 288.4,
"tt": 1902,
"tfn": 0.124,
"tbfn": 0.015,
"pc": 36,
"ccp": 12.4,
"mcp": 8.1,
"vcp": 19.03,
"txcp": 6.2,
"fcp": 4.8,
"bfcp": 2.1,
"pccp": 3.3
}
]
},
{
"c": "robinhood",
"ci": 4663,
"tf": "24h",
"o": {
"tc": 48,
"tm": 12,
"tvu": 428000,
"tvn": 288.4,
"tt": 1902,
"tfn": 0.124,
"tbfn": 0.015,
"pc": 36,
"ccp": 12.4,
"mcp": 8.1,
"vcp": 19.03,
"txcp": 6.2,
"fcp": 4.8,
"bfcp": 2.1,
"pccp": 3.3
},
"p": [
{
"pr": "PonsV2",
"tc": 48,
"tm": 12,
"tvu": 428000,
"tvn": 288.4,
"tt": 1902,
"tfn": 0.124,
"tbfn": 0.015,
"pc": 36,
"ccp": 12.4,
"mcp": 8.1,
"vcp": 19.03,
"txcp": 6.2,
"fcp": 4.8,
"bfcp": 2.1,
"pccp": 3.3
}
]
}
]
}
Subscription acknowledgement
{
"type": "lighthouse_stream_subscribe_response",
"room_id": "lighthouse",
"data": {
"chains": [
"solana",
"robinhood"
],
"chain_ids": [
-1,
4663
],
"interval_ms": 1000,
"timeframes": [
"5m",
"1h",
"6h",
"24h"
],
"rejected": []
}
}
Unsubscribe
{
"type": "room_message",
"payload": {
"room_id": "lighthouse",
"message": {
"action": "unsubscribe_all"
}
}
}