Skip to content

Latest commit

 

History

History
57 lines (37 loc) · 1.58 KB

README.md

File metadata and controls

57 lines (37 loc) · 1.58 KB

🌐 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.