SOL Balance
--loading--
Bot treasury across active wallets
Connecting...
wss://ares.marak.com/ws
Developers can access Ares state with a single HTTP request or by opening a WebSocket connection and listening for live messages.
Fetch the latest state snapshot in one request.
const response = await fetch('https://ares.marak.com/api/state');
const state = await response.json();
console.log('Current Ares state:', state);
Subscribe to state updates and react to incoming messages in real time.
const socket = new WebSocket(`wss://ares.marak.com/ws`);
socket.addEventListener('open', () => {
console.log('Connected to Ares websocket');
});
socket.addEventListener('message', (event) => {
const message = JSON.parse(event.data);
console.log('Ares update:', message);
});
| Path | Value |
|---|---|
| Waiting for state payload... | |
Waiting for state payload...