Examples for cardano-client-lib
Comprehensive examples with detailed explanations for:
- Simple payments and transfers
- Token minting and NFTs
- Plutus smart contracts
- Staking and delegation
- Advanced features (time locks, CIP-8, key derivation)
Examples are located under src/test/java source root.
- Cardano Client Lib 0.8.0-preview1 or higher
- Java 17 or higher
- Maven
- Blockfrost API key (get one at blockfrost.io)
Add your Blockfrost testnet project ID in Constant.java:
public static final String BLOCKFROST_PROJECT_ID = "your-project-id";# Run a specific example
mvn test -Dtest=SimplePayment
# Run all QuickTx examples
mvn test -Dtest="com.bloxbean.cardano.client.example.quicktx.*"- tutorial/ - Example code from cardano-client.dev docs
- quicktx/ - High-level QuickTx API examples (recommended for beginners)
- function/ - Function-based composition examples
- timelock/ - Time-based transaction constraints
- cip8/ - Message signing (CIP-8 standard)
- derivation/ - HD wallet key derivation