Skip to content

Commit

Permalink
Add API Token example to Readme (#143)
Browse files Browse the repository at this point in the history
* Add getUTxOInfo Tests

* Add API Token example to Readme

---------

Co-authored-by: Dudi Edri <[email protected]>
  • Loading branch information
edridudi and Dudi Edri authored Nov 8, 2023
1 parent b536e89 commit 6efbfe5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ Resource and maintenance requirements for Cardano blockchain components (e.g. ca
compile group: 'io.github.cardano-community', name: 'koios-java-client', version: '1.18.0'
```

### Get Koios Backend Service
### Get Koios Backend Service (No API Token)
- Mainnet
```java
BackendService backendService = BackendFactory.getKoiosMainnetService();
Expand All @@ -381,6 +381,16 @@ BackendService backendService = BackendFactory.getKoiosPreprodService();
BackendService backendService = BackendFactory.getKoiosGuildService();
```

### Get Koios Backend Service (with API Token)

Get Your API Token from Koios Website: https://www.koios.rest/

- Mainnet
```java
String apiToken = "<API_TOKEN>";
BackendService backendService = BackendFactory.getKoiosMainnetService(apiToken);
```

### Get Koios Backend Services
```java
NetworkService networkService = backendService.getNetworkService();
Expand Down

0 comments on commit 6efbfe5

Please sign in to comment.