Subscriber
Listening to data from a Stork Aggregator via WebSocket.
Base Endpoint
The standard endpoint for interacting with Stork via websocket is:
Authentication
All websocket connection requests must include an Authorization
header with the value set as Basic <token>
. For example if your token is gmork123
:
Endpoints
/evm/subscribe
Subscribe to listen to EVM signed data. This is data is signed using the Stork EVM private key, and is compatible with any chain stork supports other than StarkEx.
Example:
/stark/subscribe
Subscribe to listen to Stark signed data. This is data is signed to be natively compatible with StarkEx.
Example:
Messages
Subscribe Message
Description:
Subscribe to receive the stream of signed updates for assets.
Fields:
"type"
: Type of the message. In this case"subscribe"
Example:
Subscribe Response
Description:
A response containing the data for subscribed assets.
Fields:
"type"
: Type of the message. In this case"subscribe"
"trace_id"
: Trace id for debugging
Example:
Unsubscribe Message
Description:
Unsubscribe from updates for a subset of subscribed assets.
Fields:
"type"
: Type of the message. In this case"unsubscribe"
.
Example:
Unsubscribe Response
Description:
Response containing the resulting list of subscriptions.
Fields:
"type"
: Type of message. In this case"unsubscribe"
."data"
:"subscriptions"
: Updated list of plain-text asset ids you are subscribed to.
Example:
Last updated