---
description: >-
  With this method you can set the network where you create and search your
  certificates.
---

# CEP\_Account.setNetwork()

### Function Signature

```java
public String setNetwork(String network) throws Exception
```

### Parameters

| Parameter Name | Datatype |
| -------------- | -------- |
| `network`      | String   |

### Example

```java
//...
account.setNetwork("testnet"); // Use testnet, mainnet or devenet
//...
```
