Go SDK
Data Engine's live data feeds can be accessed through the Relayer using the official Go SDK.
Overview
The general process to set-up and other do's & don'ts while connecting to the relayer remain the same as discussed in the WebSockets section.
Quick Start
1. Install
First, install Relayer-Go-SDK
using go get
command:
2. Set-Up
Now, set-up the SDK with the relevant imports and feedIDs.
3. Consume Events
After initializing the SDK with the relevant parameters. You can now start consuming the events through the relevant channels. Here, the deadline context helps to cleanly close off the RelayerWS connection.
Live Example
Last updated