mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2026-04-29 15:37:48 +00:00
Credential Samples (Java)
Java code samples demonstrating Credential workflows on the XRP Ledger, using xrpl4j.
| Sample | Description |
|---|---|
ManageCredentials.java |
Full credential lifecycle: fund two Testnet accounts, issue a credential, accept it, and delete it. |
Requirements
- Java 11 or later
- Maven 3.6+
Install
From this directory, download dependencies and compile all samples:
mvn install
The first run downloads xrpl4j and its transitive dependencies from Maven Central (~30 seconds). Subsequent runs use the local cache at ~/.m2/repository/ and are near-instant.
Run
Run any sample by passing its class name as the exec.mainClass property:
mvn exec:java -Dexec.mainClass=com.example.xrpl.ManageCredentials
Related docs
- Credentials — concept and transaction reference
- Get Started Using Java — general
xrpl4jsetup - xrpl4j on GitHub