Substreams WebSockets service — stream decoded blocks, swaps & transfers in real time.
    Read-only preview
    You're browsing the public WebSockets reference. Sign in to open a live stream with your team's API key.

    QuickstartBeta

    Open a WebSocket, subscribe to a network@table stream, and start receiving decoded blocks in real time. Pick a stream below — then drop the URL into wscat, Node, or the browser.

    Endpoint
    WS
    1# npm i -g wscat
    2wscat -c "wss://ws.pinax.network/ws/solana@swaps?token=<YOUR_JWT>"
    No API key loaded — samples show a <YOUR_JWT> placeholder. Open Try it to paste a token and stream live.
    Available streams (loading…)live from GET /streams

    EVTsession welcome

    Sent once per connection. Describes every stream the server is configured to broadcast, and echoes the subscriptions this connection actually resolved to.

    Message
    {
      "type": "session",
      "status": "connected",
      "client_id": 1,
      "streams": [
        {
          "network": "solana",
          "module": "db_out",
          "manifest": "https://spkg.io/svm-dex-v0.5.1.spkg",
          "module_hash": "bd388f2e39f5dcc237cfbdb8d6c96d9e5678c797",
          "package_name": "svm_dex",
          "package_version": "v0.5.1",
          "tables": [
            "swaps"
          ]
        }
      ],
      "subscriptions": [
        "solana@swaps"
      ],
      "wrap_envelope": false
    }

    Fields

    typestring

    Always "session".

    statusstring

    "connected" on a healthy upgrade.

    client_idnumber

    Per-connection id, echoed back for debugging.

    streamsarray

    Every Substreams source the server reads, advertised regardless of your subscription (fields below). Lets a client build a discovery UI without waiting for blocks.

    subscriptionsstring[]

    The filtered set this connection actually receives, as <network>@<table> selectors.

    wrap_envelopeboolean

    Whether subsequent payloads are wrapped in { "stream", "data" } or sent raw. Fixed at upgrade time.

    streams[] entry

    networkstring

    Chain identifier the source streams.

    modulestring

    Output module name (the spkg's db_out).

    manifeststring

    URL of the .spkg the server runs.

    module_hashstring

    40-hex SHA-1 of the output module. Pin it to detect spkg upgrades.

    package_namestring

    Substreams package name.

    package_versionstring

    Substreams package version.

    tablesstring[]

    DatabaseChanges tables this spkg emits — subscribe to any as <network>@<table>.