Skip to content

Latest commit

 

History

History
56 lines (39 loc) · 1.49 KB

File metadata and controls

56 lines (39 loc) · 1.49 KB

cardano-client-backend-koios

Cardano Koios Backend implementation for Cardano Client Lib

Dependency

Maven

<dependency>
     <groupId>com.bloxbean.cardano</groupId>
     <artifactId>cardano-client-lib</artifactId>
     <version>{version}</version>
</dependency>
<dependency>
     <groupId>com.bloxbean.cardano</groupId>
     <artifactId>cardano-client-backend-koios</artifactId>
     <version>{version}</version>
</dependency>

Gradle

  implementation('com.bloxbean.cardano:cardano-client-lib:{version}')
  implementation('com.bloxbean.cardano:cardano-client-backend-koios:{version}')

Get BackendService instance for Cardano Koios backend

BackendService backendService = new KoiosBackendService(<Koios Instance Url>);

Example:

BackendService using Global Testnet Koios endpoint.

BackendService backendService = new KoiosBackendService(Constant.KOIOS_TESTNET_URL);

Note: You can get other services from BackendService instance. For detailed api usage, check cardano-client-lib project

Build

From top level project folder (Exp: cd ~/cardano-client-lib)

$> ./gradlew -p ./backend-modules/koios/ clean build

Limitations

  • Block Object Received By BlockService::getLatestBlock Endpoint will have null fields for Output Sum, Fees, and Num of Confirmations.
  • Ordering is not supported for Account Addresses and Account Assets Endpoint.