Cardano Koios Backend implementation for Cardano Client Lib
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 the Koios public preprod endpoint.
BackendService backendService = new KoiosBackendService(Constants.KOIOS_PREPROD_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.