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
Post #65
349