echozero
MIT-licensed Rust SDK for EchoZero.
Install
[]
= "0.2"
REST Client
let client = new
.with_api_key;
let me = client.get_json.await?;
Inbound Webhook Signing
let mut body = new;
body.insert;
let =
sign_inbound_webhook;
Signal WebSocket
Enable the websocket feature:
[]
= { = "0.2", = ["websocket"] }
The gateway speaks Socket.IO (namespace /ws/signals on https://mcp.echozero.app) and authenticates with your developer API key. It accepts structured envelopes (eventType) and the legacy { action, tokenAddress, amount } shape; natural-language text signals are HTTP webhook only. Responses are not correlated to requests, so match them with idempotencyKey / signalId.
use SignalClient;
use json;
let mut signals = connect.await?;
let signal = json!;
signals.send_signal?;
while let Some = signals.next_event.await
There is no automatic reconnect; connect again and re-send unacknowledged signals with the same idempotencyKey. See examples/signal_stream.rs.