Skip to content

Connecting a wallet in the TON blockchain using TonConnect. Payments in Toncoin, USDT, Notcoin. Display TON exchange rate in real time via CoinGecko.

Notifications You must be signed in to change notification settings

mikbolshakov/ton-payment

Repository files navigation

🌐 TON Blockchain Payment Demo

This project demonstrates how to integrate with the TON blockchain for seamless payments and wallet connectivity. Built using Vite, it supports payments in Toncoin, USDT and Notcoin. Additionally, the app fetches and displays the real-time Toncoin exchange rate using the CoinGecko API.

🚀 Quick Start

Prerequisites

Ensure you have the following installed:

Installation

  1. Clone the repository:
git clone https://github.com/mikbolshakov/ton-payment.git
  1. Install dependencies:
npm install
  1. Start the development server:
npm run dev
  1. Open your browser and navigate to the provided local URL (usually http://localhost:5173).

⚠️ Note: The project does not require .env file.

🛠️ How It Works

  • Wallet Connection:

  • Uses TonConnect to establish a secure connection with a TON wallet.

  • Displays the wallet address after a successful connection.

  • Payment Integration:

  • Multiple payment options for Toncoin, USDT and Notcoin.

  • Starts the transaction process.

  • Exchange Rate Display:

  • Fetches the latest Toncoin-to-USD conversion rate using CoinGecko.

  • Real-time updates to reflect current market trends.

🌍 Built With

  • Vite: Lightning-fast development environment.
  • React: Modern UI library for building interactive interfaces.
  • TonConnect: Simplified wallet integration with the TON blockchain.
  • CoinGecko API: For fetching exchange rates.

About

Connecting a wallet in the TON blockchain using TonConnect. Payments in Toncoin, USDT, Notcoin. Display TON exchange rate in real time via CoinGecko.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published