Skip to Content
⚠️ Alert: Sylan is under active development—only trust contract/wallet addresses announced on our official channels; we will never DM you, ask for funds, or run surprise airdrops/presales.
ProviderBest Practices

Best Practices

  • Deterministic payloads: Prefer stable key order (the SDK hashes using a canonical JSON serializer). Avoid adding random/non‑essential fields.
  • Bounded size: Keep payloads compact; large JSON means higher network and IPFS costs (if pinned later by nodes).
  • Use TTL intentionally: ttlMs=0 for static data; a small positive TTL for rapidly changing feeds.
  • Choose seq strategy:
    • monotonic: always increases (simple; good default)
    • hash-change: only increments when contentHash changes (reduces on‑chain churn for noisy feeds)
  • Log and monitor: capture request rate, latency, and error rate; alert on spikes.
  • Keys & secrets: store providerSignerKey in a secret manager; never commit sylan.config.json or .env.
  • Rate limits: protect upstreams with backoff and rate limiting; the Express adapter exposes helmet, cors, and express-rate-limit in the default server.
Last updated on