Overview
Returns the list of GossipSub topics the SSV node is subscribed to, along with the peers subscribed to each topic. This is useful for debugging P2P connectivity and verifying proper topic subscription.Endpoint
Authentication
No authentication required.Response
Array of all peer IDs connected to the node
Array of topic subscription information
Example Request
cURL
Example Response
Use Cases
Verify Topic Subscription
Check that your node is subscribed to the correct topics for your validators:Monitor Peer Distribution
Ensure peers are distributed across your validator topics:Debug Connectivity Issues
If a validator isn’t receiving duties, check if peers are subscribed to its topic:Topic Name Format
SSV uses a hierarchical topic naming scheme:v2- SSV protocol version<network>- Ethereum network name (mainnet, holesky, etc.)<validator_pubkey>- Validator public key (first 8 characters)
Troubleshooting
No Topics Listed
Ifpeers_by_topic is empty:
- Node hasn’t loaded validator shares yet
- Check that validator share files are in the correct location
- Verify the node has synced contract events
Low Peer Count per Topic
If topics have fewer than 3-4 peers:- Check network connectivity and firewall rules
- Verify discovery is working (
/v1/node/peers) - Ensure your node is advertising correct multiaddrs
Topics for Unknown Validators
If you see topics for validators you don’t manage:- This is normal - nodes may briefly subscribe to topics during network discovery
- Only topics with consistent peer presence indicate managed validators
Related Endpoints
- Node Identity - Get node’s peer ID and addresses
- Peers - List all connected peers
- Health Check - Overall node health status
Source Reference
Implementation:api/handlers/node/node.go:68 (Topics method)
Topic indexing: network/topics/ package