Terminal

The terminal is the fastest and easiest way to integrate, change and analyze blinks into your app with no code or redeployment required.

Terminal is our SaaS solution that brings smooth blink integration to everyone. With the Terminal, you get complete control over your blinks in one place. You can:

  • Add new blinks instantly,

  • Customize their metadata to match your needs,

  • Organize blinks into custom lists,

  • Monitor real-time usage data,

  • And much more!

Best part: no code change or redeployment needed of your existing app required, so that you can build the experiences you want for your users at almost no time!

Set client key

Before you can make use of the terminal features, you need to set a client key in your frontend. This guide will walk you through the necessary alignments.

If you don't have your client key already, you can request one by signing up for the terminal.

This example explains how you can set a client key and fetch a BlinkList using our SDKs.

// Client SDK example for fetching a BlinkList

import {
  BlinkList,
  fetchBlinkList,
  setClientKey,
} from '@dialectlabs/blinks-core';

// 1. Set client key
setClientKey('...');

// 2. Fetch Blink List
const list: BlinkList = await fetchBlinkList('list-id', 'user-wallet-address');

Using HTTP requests

This example explains how you can fetch a BlinkList making HTTP requests. We strongly advise you to use our client SDKs for the best developer experience.

// HTTP example for fetching a BlinkList

fetch('https://api.dial.to/v1/blink-lists/{id}', {
  headers: {
    Accept: '*/*',
    'X-Blink-Client-Key': 'YOUR_SECRET_TOKEN'
  }
})

Last updated

Was this helpful?