Skip to main content
This page walks through examples/web-showcase. Read the overview first for how it works.
1

Install the SDK

src/markets.ts
2

Load the events

fetchMarkets returns one HIP4Market per outcome. Keep Outcome’s, and group a question’s options into one event.
src/markets.ts
3

Assign categories

src/markets.ts
4

Link to outcome.xyz

src/markets.ts
5

Show the markets

Render them however fits your site. A basic example:
The example app shows each event as a card, with category tabs and a refresh every minute. See src/main.ts.

Next steps