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 serde serialization

  • Async/Await: Built on tokio and reqwest for async operations

  • Comprehensive: 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 management

  • karma_system.rs - Working with karma

  • nft_operations.rs - Minting and transferring NFTs

  • social_features.rs - Friends and messaging

Run an example:

πŸ§ͺ Testing

πŸ“„ License

MIT

🀝 Contributing

Contributions are welcome! Please see CONTRIBUTING.mdarrow-up-right.

Last updated