> For the complete documentation index, see [llms.txt](https://developer.1moneynetwork.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.1moneynetwork.com/integrations/sdks/rust/client-configuration.md).

# Client Configuration

#### Configure clients for Testnet and Mainnet&#x20;

```rust
use onemoney_protocol::{Client, ClientBuilder};
use std::time::Duration;

// Basic clients
let client = Client::mainnet();     // Mainnet
let client = Client::testnet();     // Testnet

// Custom configuration
let client = ClientBuilder::new()
    .base_url("https://custom.api.endpoint.com")
    .timeout(Duration::from_secs(30))
    .build()?;
```
