overview

The YAP token chat widget is a fully self-contained iframe that can be embedded in any web platform. It requires no JavaScript SDK, no API key, and no backend integration on your side.

How embedding works

Your Platform
└── <iframe src="https://widget.yaphub.xyz/token/CONTRACT"> ← that's it

The widget:

  • Loads entirely from widget.yaphub.xyz

  • Manages its own WebSocket connection to the YAP server

  • Handles all user identity, messaging, and reactions internally

  • Never communicates with your platform's domain

  • Never accesses your DOM, cookies, or localStorage

Prerequisites

Requirement
Details

Whitelist approval

Free, takes under 24 hours

Contract address

Solana, Ethereum, BSC, Base, Monad, or Tron

HTTPS

Your platform must be served over HTTPS

Supported chains

Chain
Identifier

Solana

solana

Ethereum

eth

BNB Chain

bsc

Base

base

Monad

monad

Tron

tron

Widget URL structure

Optional colour parameters can be appended as query strings:

See URL Parameters for the full list.

Widget Builder

The easiest way to generate your embed code is the Widget Builder at yaphub.xyz/integrationarrow-up-right.

It allows you to:

  • Enter your contract address and preview the widget live

  • Customise all colours with a colour picker

  • Switch between Dark, White, Midnight Blue, and Forest presets

  • Preview on mobile, tablet, and desktop sizes

  • Copy the final embed code with one click

Was this helpful?