https://github.com/javadtorabikh/transferrust
A blazing-fast and secure API built with Rust to create and submit transactions on a blockchain network.
https://github.com/javadtorabikh/transferrust
blockchain blockchain-technology move rust transactions
Last synced: 17 days ago
JSON representation
A blazing-fast and secure API built with Rust to create and submit transactions on a blockchain network.
- Host: GitHub
- URL: https://github.com/javadtorabikh/transferrust
- Owner: JavadTorabiKh
- License: mit
- Created: 2025-04-06T14:42:31.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-09-20T11:38:39.000Z (18 days ago)
- Last Synced: 2025-09-20T13:22:25.703Z (18 days ago)
- Topics: blockchain, blockchain-technology, move, rust, transactions
- Language: Rust
- Homepage:
- Size: 71.3 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Roadmap: roadmap.txt
Awesome Lists containing this project
README
# ๐ Rust-Language Blockchain Transaction API
A blazing-fast and secure API built with **Rust** to create and submit transactions on a blockchain network.
> Perfect for powering wallets, dApps, backend services, or blockchain automation tools.
---
## ๐ Features
- ๐ฆ Written in **Rust** for performance and safety
- ๐ Secure transaction signing and submission
- ๐ Connects directly with your blockchain node
- โ๏ธ Easy to integrate into any Web3 stack
- ๐ก RESTful API interface for simple interaction---
## ๐ฆ Tech Stack
- **Language:** Rust
- **Web Framework:** [Actix Web](https://actix.rs/)
- **Blockchain Support:** Compatible with networks like **Sui**, custom blockchains, or other Move-based chains
- **Serialization:** JSON (via `serde`)
- **Security:** Optional JWT or API key auth (configurable)---
## ๐ ๏ธ Getting Started
### Prerequisites
- Rust (latest stable version)
Install via [rustup.rs](https://rustup.rs)
- Access to a blockchain node (e.g., a Sui full node or devnet node)### Clone & Build
```bash
git clone https://github.com/JavadTorabiKh/TransferRust.git
cd apiTransfer
cargo build --release
```### Run the API
```bash
cargo run
```
The API will be available at:
http://localhost:8000---
## ๐ง Configuration
You can configure the API via environment variables or a .env file:```env
BLOCKCHAIN_RPC_URL=https://fullnode.devnet.sui.io
PRIVATE_KEY=your_private_key_here
PORT=8000
```---
## ๐ฎ Example API Usage
Create Transaction
POST /transactionRequest Body:
```json
{
"recipient": "0xabc123...",
"amount": 1000000,
"token": "SUI"
}
```
Response:```json
{
"status": "success",
"tx_hash": "0xdeadbeef1234567890"
}
```---
## ๐ Project Structure
```bash
src/
โโโ main.rs # Application entry point
โโโ handlers.rs # API route handlers
โโโ blockchain.rs # Blockchain interaction logic
โโโ models.rs # Request/response models
โโโ config.rs # App configuration
```---
## ๐งช Testing
```bash
cargo test
```
You can also use Postman or curl to test endpoints manually.---
## ๐ค Contributing
Pull requests are welcome! If youโd like to help improve this project, feel free to fork it and submit a PR.---
## ๐ License
Licensed under the MIT License.---
## ๐ฌ Contact
Created by javadtorabi462@gmail.comFeel free to reach out for questions, suggestions, or collaborations!