Paratro MPC Wallet Gateway Rust SDK
Official Rust SDK for Paratro MPC Wallet Gateway - A comprehensive Multi-Party Computation wallet management platform.
Features
- MPC Wallets - Create and manage MPC wallets with enhanced security
- Multi-Chain Support - Ethereum, BSC, Polygon, Avalanche, Arbitrum, Optimism, Tron, Bitcoin, Solana
- Account Management - Create and manage multiple accounts per wallet
- Asset Management - Support for native tokens and ERC20/TRC20 tokens
- Transfer - Send funds to external addresses with automatic asset resolution
- Transaction Tracking - Complete transaction history and status tracking
- Secure - Built-in JWT authentication with automatic token management
- Webhook - HMAC-SHA256 signed webhook notifications for incoming transactions
Installation
Add to your Cargo.toml:
[]
= "1.0.0"
= { = "1", = ["full"] }
Or install via cargo:
Requirements: Rust 1.70 or higher
Quick Start
use ;
async
Configuration
use ;
// Sandbox (for testing)
let client = new?;
// Production
let client = new?;
// Custom environment
let client = new?;
Error Handling
The SDK returns paratro_sdk::Error for failures, with convenience helpers:
use ;
match client.get_wallet.await
See Error Handling Guide for detailed usage.
Documentation
- API Reference - Complete endpoint documentation with request/response formats
- Webhook Reference - Webhook signature verification and integration guide
- Error Handling - Error types and handling patterns
Development
Project Structure
paratro-sdk-rust/
├── Cargo.toml # Package manifest
├── src/
│ ├── lib.rs # Public API exports, version
│ ├── client.rs # HTTP client, response handling
│ ├── config.rs # Environment configuration
│ ├── error.rs # Error types and helpers
│ ├── token.rs # JWT token management
│ ├── wallet.rs # Wallet API
│ ├── account.rs # Account API
│ ├── asset.rs # Asset API
│ ├── transaction.rs # Transaction API
│ └── transfer.rs # Transfer API
├── tests/ # Integration tests
└── docs/ # Documentation
Build & Test
Support
- Email: support@paratro.com
- Documentation: https://docs.paratro.com
- Issues: https://github.com/paratro/paratro-sdk-rust/issues
License
This project is licensed under the MIT License - see the LICENSE.md file for details.