Skip to Content
Introduction

Cardano Client Lib

A client library for Cardano in Java. This library simplifies the interaction with Cardano blockchain from a Java application.

Latest Stable Version: 0.7.1 

Preview Release Available: 0.8.0-preview1 introduces TxFlow (multi-step transaction orchestration), TxPlan (YAML transactions), MpfTrie (verified data structures), and the Unified Tx API.

Overview

Cardano Client Lib provides a comprehensive set of tools for building Cardano applications in Java:

  • Transaction Building - Build and submit transactions with simple declarative APIs
  • Token Minting - Mint native tokens and NFTs with built-in policy script support
  • Smart Contracts - Interact with Plutus smart contracts
  • Address Generation - Generate addresses from mnemonics
  • Multiple Backends - Connect via Blockfrost, Koios, or Ogmios

What’s New (0.8.0 Preview)

  • Unified Tx API - ScriptTx merged into Tx — one class for all transaction types
  • TxFlow - Multi-step transaction orchestration with UTXO chaining and rollback handling
  • TxPlan - YAML-based transaction definitions with variable substitution
  • MpfTrie - Merkle Patricia Forestry with RocksDB for on-chain proof verification

Recent Posts

Features

Address Generation

  • Address Generation (Base Address, Enterprise Address)
  • Generate Address from Mnemonic phase

Transaction Serialization & Signing

  • API to build Payment transaction (ADA & Native Tokens)
  • CBOR serialization of transaction
  • Transaction signing

QuickTx API

  • Build and submit transaction with simple declarative style API
  • Supports:
    • Payment transaction
    • Token Minting and token transfer
    • Plutus smart contract call
    • Token minting with Plutus contract
    • Staking operations
    • Governance transactions (Preview)

Composable Functions

  • Composable functions to build transaction
  • Supports:
    • Payment transaction
    • Token Minting and token transfer
    • Plutus smart contract call
    • Token minting with Plutus contract

High Level API (Deprecated)

  • To build and submit:
    • Payment transaction
    • Token Minting and token transfer transaction

CIP Implementations

Backend Integration

The library provides integration with Cardano node through different backend services:

ProviderModuleStatus
Blockfrost cardano-client-backend-blockfrostStable
Koios cardano-client-backend-koiosStable
Ogmios cardano-client-backend-ogmiosStable
Yaci Store cardano-client-backend-blockfrostStable
Yaci DevKit cardano-client-backend-blockfrostStable

Available Backend APIs

  • TransactionService (Submit transaction, Get transaction, Evaluate ExUnits for Script Txn)
  • AddressService (Get address details)
  • UtxoService (Get utxos for an address)
  • AssetService
  • BlockService
  • NetworkInfoService
  • EpochService
  • MetadataService
Last updated on