Skip to Content
Getting StartedDependencies

Dependencies

For release binaries

For Maven, add the following dependencies to project’s pom.xml

  • Core module
<dependency> <groupId>com.bloxbean.cardano</groupId> <artifactId>cardano-client-lib</artifactId> <version>${ccl.version}</version> </dependency>
  • Backend modules

    • For backend support, use one of the following supported backend module
<!-- For Blockfrost backend --> <dependency> <groupId>com.bloxbean.cardano</groupId> <artifactId>cardano-client-backend-blockfrost</artifactId> <version>${ccl.version}</version> </dependency> <!-- For Koios backend --> <dependency> <groupId>com.bloxbean.cardano</groupId> <artifactId>cardano-client-backend-koios</artifactId> <version>${ccl.version}</version> </dependency> <!-- For Ogmios backend --> <dependency> <groupId>com.bloxbean.cardano</groupId> <artifactId>cardano-client-backend-ogmios</artifactId> <version>${ccl.version}</version> </dependency>

For Gradle, add the following dependencies to build.gradle

  • Core Module
implementation 'com.bloxbean.cardano:cardano-client-lib:${ccl.version}'
  • Backend modules

    • For backend support, use one of the following supported backend module
//For Blockfrost implementation 'com.bloxbean.cardano:cardano-client-backend-blockfrost:${ccl.version}' //For Koios implementation 'com.bloxbean.cardano:cardano-client-backend-koios:${ccl.version}' //For Ogmios implementation 'com.bloxbean.cardano:cardano-client-backend-ogmios:${ccl.version}'

For snapshot binaries

SNAPSHOT_VERSION : 0.8.0-SNAPSHOT (Please verify the latest snapshot version in gradle.properties)

  • For Maven, add the following dependencies and repository to project’s pom.xml
<dependencies> <dependency> <groupId>com.bloxbean.cardano</groupId> <artifactId>cardano-client-lib</artifactId> <version>{SNAPSHOT_VERSION}</version> </dependency> <dependency> <groupId>com.bloxbean.cardano</groupId> <artifactId>cardano-client-backend-blockfrost</artifactId> <version>{SNAPSHOT_VERSION}</version> </dependency> </dependencies> <repositories> <repository> <id>snapshots-repo</id> <url>https://central.sonatype.com/repository/maven-snapshots</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories>
  • For Gradle, add the following dependencies and repository to build.gradle
repositories { ... maven { url "https://central.sonatype.com/repository/maven-snapshots" } } implementation 'com.bloxbean.cardano:cardano-client-lib:{SNAPSHOT_VERSION}' implementation 'com.bloxbean.cardano:cardano-client-backend-blockfrost:{SNAPSHOT_VERSION}'
Last updated on