OASIS Web4 Rust SDK
Official Rust client for the OASIS Web4 API - Decentralized avatar management, karma system, NFTs, and cross-provider data storage.
π¦ Features
Type-safe API: Full Rust type safety with
serdeserializationAsync/Await: Built on
tokioandreqwestfor async operationsComprehensive: All Web4 API endpoints supported
Well-documented: Complete API documentation and examples
Error handling: Robust error types with
thiserror
π Installation
Add to your Cargo.toml:
[dependencies]
oasis-web4-client = "1.0"
tokio = { version = "1", features = ["full"] }π Quick Start
Basic Usage
Authentication
Avatar Management
Karma System
NFT Operations
Provider Management
Messaging
Social Features
π§ Configuration
Advanced Configuration
Environment Variables
π Error Handling
All methods return Result<OASISResult<T>, Error>:
π Examples
See the examples/ directory for complete examples:
basic_auth.rs- Authentication and avatar managementkarma_system.rs- Working with karmanft_operations.rs- Minting and transferring NFTssocial_features.rs- Friends and messaging
Run an example:
π§ͺ Testing
π License
MIT
π Links
π€ Contributing
Contributions are welcome! Please see CONTRIBUTING.md.
Last updated