Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 1.34 KB

File metadata and controls

52 lines (36 loc) · 1.34 KB

cardano-client-backend-blockfrost

Cardano Blockfrost 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-blockfrost</artifactId>
     <version>{version}</version>
</dependency>

Gradle

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

Get BackendService instance for Cardano Blockfrost backend

BackendService backendService = new BFBackendService(<Blockfrost API Url>, <Blockfrost Project Id>)

Example:

BackendService using Blockfrost Testnet endpoint.

BackendService backendService = new BFBackendService(Constants.BLOCKFROST_TESTNET_URL, <Blockfrost_Project_Id>);

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/blockfrost/ clean build