Files
xrpl-dev-portal/_code-samples/credential/java
2026-04-22 17:23:29 -07:00
..
2026-04-18 09:56:08 -07:00
2026-04-18 09:56:08 -07: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

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