# FinTag Rust SDK
The FinTag Rust SDK provides tools and libraries for integrating with the FinTag API, enabling developers to build secure and efficient applications leveraging FinTag's verification and wallet features.
## Features
- Secure API authentication
- Verify FinTag identities
- Retrieve wallet information
- Simple, idiomatic Rust API
## Installation
Add the following to your `Cargo.toml`:
```toml
[dependencies]
fintag-rust = "0.1.0"
```
## Usage
### Create a Client
```rust
use fintag_rust::FintagClient;
let client = FintagClient::new("your-api-key");
```
### Verify a FinTag
```rust
let result = client.verify("#john_doe");
match result {
Ok(data) => println!("Verification successful: {:?}", data),
Err(err) => eprintln!("Error verifying fintag: {}", err),
}
```
### Get Wallet Info
```rust
let result = client.get_wallet_info("#john_doe");
match result {
Ok(data) => println!("Wallet info: {:?}", data),
Err(err) => eprintln!("Error retrieving wallet info: {}", err),
}
```
## Examples
See the [`examples/`](examples/) directory for full usage:
- [`verify.rs`](examples/verify.rs): Verify a FinTag
- [`wallet.rs`](examples/wallet.rs): Retrieve wallet info
## License
Apache-2.0 © FinTag