A lightweight Rust backend server built with Axum and Tokio, exposing Solana-related APIs.
This backend provides endpoints to generate keypairs, sign/verify messages, transfer SOL, and handle SPL tokens.
This project simplifies Solana development by providing ready-to-use HTTP endpoints that abstract away complex Solana instruction building.
It is stateless, secure, and easily extendable for new Solana features like Token-2022.
- POST /keypair
- Generates a new Solana keypair (public + secret).
- POST /token/create
- Creates a new SPL Token mint with a given authority and decimals.
- POST /token/mint
- Mints new tokens to a destination account.
- POST /message/sign
- Signs a message using a provided secret key.
- POST /message/verify
- Verifies that a signature belongs to a given message and public key.
- POST /send/sol
- Creates a native SOL transfer instruction between two accounts.
- POST /send/token
- Creates an SPL Token transfer instruction between two accounts.
- Uses Ed25519 for message signing and verification.
- Keys encoded in Base58.
- Signatures and instruction data encoded in Base64.
- Structured error handling for safer responses.
- Stateless design (no private key storage).
- 🚫 No private keys are stored on the server.
- ✅ Input validation for all endpoints.
- ✅ Uses secure cryptographic primitives from Solana crates.
- ✅ Proper error handling with no sensitive info leakage.
- Axum – Web framework
- Tokio – Async runtime
- Solana SDK – Solana primitives
- SPL Token – Token program support
MIT License © 2025