Skip to main content

Waypoint x Telegram

Overview

This is a step-by-step tutorial for integrating a web-based game in a Telegram Mini App with Ronin Waypoint.

After completing this tutorial, you will be able to:

  • Implement a new Mini App in Telegram.
  • Authorize users with Ronin Waypoint.
  • Interact with users' keyless wallets in your Mini App.

Highlight benefits for users:

  • Better onboarding: create an account and wallet with a social account or email address.
  • Secure by default.
  • Better UX: users don't need to switch between the app and the wallet.
Demo app

Check the demo Mini App that you will build in this tutorial: Pray to Atia.

Problem

A Telegram Mini App is a web app that you can run inside Telegram. We can implement a basic web app and make it a Mini App running in Telegram.

Ronin Waypoint is your universal account and keyless wallet in the Ronin ecosystem. It allows you to sign in without extensions or seed phrases and make in-game transactions.

Steps

  1. ⚒️ Create a new web app and install dependencies
  2. 🖇️ Register your app and get client ID
  3. 🪪 Authorize a user with Ronin Waypoint
  4. 📜 Gather smart contract information
  5. 🔍 Get the check-in status of the user
  6. 🔐 Unlock the wallet with Lockbox
  7. 🎯 Check in the user
  8. 💪 Telegram integration

Further challenges

  • Get the user's check-in streak.
  • Estimate the next time the user can check in.
  • Unlock and sign in one button.