DEV Community

stellar-TUI a terminal user interface for Horizon Stellar

This is a submission for the Build Better on Stellar: Smart Contract Challenge : stellar-tui
a terminal user interface for Horizon Stellar

Image description

Your Tutorial

In this tutorial, I'll walk you through the process of creating a console application using Rust to interact with the Stellar network. The application connects to the Horizon Stellar network, performs API queries, and leverages Rust crates for API abstraction. By the end of this guide, you'll have a functional terminal user interface (TUI) application for Stellar network interactions.

What I Created

Image description

For the Build Better on Stellar Smart Contract Challenge, I developed a console-based application with a terminal user interface (TUI) to interface with the Stellar Horizon network. The project involved making direct API requests to the Stellar Horizon API and using Rust crates to abstract these queries. The application integrates Stellar network functionalities, allowing users to interact with the network via a terminal interface.

In the initial version, the application supports:

  • Connecting to the Stellar network through various available wallets.
  • Performing queries directly to the Stellar Horizon API. Horizon API
  • Utilizing Rust crates for streamlined API interactions.

Github

Image description

Image description

Journey

My journey began with learning how to perform direct API requests to the Stellar Horizon network. I explored different Rust crates that provide abstractions for these API calls, which made handling the interactions more manageable and efficient. I also delved into Stellar wallets, understanding how to establish connections and use them effectively within the application.

The project highlighted the need for better information handling and display. As a next step, I plan to integrate the ratatui crate to enhance the terminal interface, improving the overall user experience. This addition will help create a more interactive and visually appealing TUI.

Overall, this challenge has been a valuable learning experience, providing insights into Stellar network interactions and Rust programming. I’m excited to continue developing this application, refining its features, and improving its user interface.

I'm also incredibly hopeful about attending Meridian 2024—fingers crossed that everything works out for this project! 🌟

Team Submissions

Me: cirqueira-labs (Discord: cirqueira5650)
E-mail: jccirqueira@outlook.com

Top comments (10)

Collapse
 
dione_b profile image
Dione Dev

Amazing!!!

Collapse
 
cirqueira profile image
José Carlos Cirqueira Júnior

:)

Collapse
 
renato_oliveira_06da86d0e profile image
Renato Oliveira

Exelent @cirqueira

Collapse
 
cirqueira profile image
José Carlos Cirqueira Júnior

thanks man!

Collapse
 
lucasserpa profile image
Lucas Serpa

Interesting!!

Collapse
 
cirqueira profile image
José Carlos Cirqueira Júnior

thanks bro

Collapse
 
otavio_bacovis_1ea7942d77 profile image
Otavio Bacovis

Great content

Collapse
 
cirqueira profile image
José Carlos Cirqueira Júnior

tks Otavio

Collapse
 
devmoss profile image
Moises Araujo

Show de mais !!

Collapse
 
cirqueira profile image
José Carlos Cirqueira Júnior

Valeu Moises