Blinks Data Schema
Blinks have a variety of core and supporting data that let you create rich, interactive and educational experiences for your users.
Last updated
Was this helpful?
Blinks have a variety of core and supporting data that let you create rich, interactive and educational experiences for your users.
Last updated
Was this helpful?
Prefer less words? Check out our Open API docs
Blinks are an interactive data structure that can contain previews, detailed information, and actionable elements - all accessible through standardized API endpoints.
In this section we describe the full blinks data schema, the motivation behind the schema, how to fetch this data from blink URLs, and how to work with these data structures, as well as others such as Blink Lists, using the Terminal.
The Blinks Data Schema is comprised of the following key structures:
Blink
BlinkPreview
BlinkDataTable
Across these three data structures and supporting substructures, like the BlinkContext
, you can create a variety of experiences for your users, including:
Core blink data, like image, title, description and associated actions.
Link preview-style cards for marketing purposes (BlinkPreview
).
Enriched metadata for show users market data like APYs, wallet balances and other kinds of relevant, live information.
Social context and trust regarding the provider of the Blink (Provider
via the BlinkContext
).
In the following sections, we go over these data structures and how to fetch them.
A Blink
contains the complete, interactive data structure. It contains all necessary information to display and interact with a Blink, including its current state, possible actions, and related data.
This is the primary structure you'll work with when implementing Blink functionality in your application.
There is no requirement for the image dimension, so it can be 1:1 or 16:9.
GET
-SchemaPOST
-schemaThere are more POST
types available, like message
, external-link
and post
. Visit our API docs for more information.
BlinkPreview
is a small, static set of data that can be used to display relevant data about the blink. Think of it more as a chance to use some marketing language and to render a preview, instead of the full blink, e.g. if you use it in a list or on a website that doesn't unfurl blinks yet.
It is also recommended to use a separate 16:9 image for this preview.
BlinkDataTable
is a structured, tabular representation of Blink-related data, designed for displaying detailed information in a key-value format. Perfect to highlight critical information such as APY, exchange rates etc.
Because many of these values are dynamic and could need more computation