Interacting with Blinks via HTTP
How to interact with blinks via pure REST HTTP.
In the previous section we describe the full blinks data schema. In this section, we describe how you can interact with blinks via pure HTTP requests.
Blinks and their associated data are available at 3 URLs:
Blink URL—e.g. https://jito.dial.to/stake, or https://api.dial.to/v1/blink?apiUrl=https%3A%2F%2Fjito.dial.to%2Fstake
Blink Preview URL—e.g. https://api.dial.to/v1/blink-preview?apiUrl=https%3A%2F%2Fjito.dial.to%2Fstake
Blink Data Table URL—e.g. https://api.dial.to/v1/blink-data-table?apiUrl=https%3A%2F%2Fjito.dial.to%2Fstake
Note that for the blink preview and data table URLs, the base Jito blink url is still provided, and it's the outer Dialect API URL that handles specifying what type of data is being requested.
In the coming weeks, blink preview and data table data will be available directly from blink providers, and not require the Dialect API. However, To learn more about our API, the Terminal and their benefits, see below.
Separating URLs for performance
Data is separated across three URLs for performance. In general, blinks and blink data table are potentially dynamic data that may require expensive computation or lookup.
Blink data and blink table data are separated from each other too. Blinks data tables can include expensive queries for information such as market prices, trading volumes, APYs, wallet balances and other data. If you only need blink and not its table data, it can add unneeded additional response time to always fetch the blink data table alongside the blink data.
Additionally, Blink preview data, on the other hand, is static and can be cached for faster response times than the other two. Additionally,
The Dialect API, The Terminal and Client Keys
The Dialect API provides critical blinks infrastructure across hosting, analytics, and SaaS management via the Terminal.
Set your Client Key in the Headers
Get a Client Key from the Terminal. Set it in your headers using:
To see which endpoints are available, you can either have a look at our main data structure and list data structure guides in this section or go to our Open API documentation.
Last updated
Was this helpful?