TGViewer
STON.fi Dev Announcements STON.fi Dev Announcements @stonfidevs · 222 subscribers
Post #65 349
you asked, we deliver…

Attention Devs! 🚀

We’re excited to roll out a brand‑new addition to our developer docs:

Omniston Python Guide 🐍✨

This beginner‑friendly, step‑by‑step tutorial shows you how to build a terminal-based token swap client that routes across multiple DEXes via the Omniston protocol (STON.fi V1 & V2, DeDust, and more). Instead of a web UI and TonConnect, you’ll use a local TON wallet (via tonsdk) and submit transactions through Toncenter—all from a single Python file.

Highlights include
• Terminal-first, single-file CLI for maximum clarity (easy to copy, run, and tweak).
• Local wallet flow with tonsdk: generate/load mnemonic, deploy, sign BOCs.
• Real-time quotes over WebSockets using Omniston (RFQ), with slippage & gasless options.
• Transaction building via Omniston’s builder and broadcast with Toncenter.
• Simple config using .env and swap_config.json (endpoints, pair, amount, decimals).
• Cross‑DEX coverage through Omniston (STON.fi V1, STON.fi V2, DeDust, etc.).

⚠️ Not an official Python SDK
This guide is a high‑level reference implementation that demonstrates how to leverage Python to use Omniston. It’s optimized for learning and clarity, not production hardening. For production apps, consider our React, Node sdks or adapt this code with your own engineering standards.

🔑 Heads‑up on broadcasting
For reliable transaction submission, set TONCENTER_API_KEY in your .env. Without it, you will not be able to submit transactions to the network.

🧩 Deliberately minimal
The quickstart uses a single‑file CLI by design. You can modularize or package it later.

What you’ll build
• A Python CLI that:
• Creates or reuses a local TON wallet (tonsdk).
• Loads network/token settings from .env and swap_config.json.
• Requests an RFQ from Omniston via WebSockets.
• Builds the swap transaction and signs it locally.
• Submits the signed BOC to Toncenter.

Jump in:
👉 Omniston Python Guide
👉 Live Demo (Replit)

Your insights and feedback help us sharpen the Python experience and the Omniston protocol. Try the guide, kick the tires, and tell us what you think—let’s build together! 🔥

DEX | Dev docs | AI docs assistant | Guide | Blog | All Links

🐣 X 🤖 Discord 🌐 Reddit 🌐 LinkedIn 📹 YouTube
More from @stonfidevs
  1. Sep 22, 2026STON.fi Dev Announcements pinned «🌐 Arc is now supported by Omniston Omniston has expande…
  2. Sep 22, 2026🌐 Arc is now supported by Omniston Omniston has expanded to Arc, bringing our cross-chain…
  3. Sep 16, 2026STON.fi Dev Announcements pinned «🛠 New Omniston Integration Example: TON → EVM in a Tele…
  4. Sep 16, 2026🛠 New Omniston Integration Example: TON → EVM in a Telegram Mini App We’ve released a new…
  5. Sep 11, 2026STON.fi Dev Announcements pinned «⚠️ Reminder: Omniston v1beta7 API Sunset We’re still see…
  6. Sep 11, 2026⚠️ Reminder: Omniston v1beta7 API Sunset We’re still seeing trading activity through v1bet…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →