Installation
- Local Maven
- From the source code
Maven Central publishing is being finalized. Until it lands, build the SDK from source and install it into your local Maven repository.
~/.m2). The bundled Gradle wrapper downloads its own Gradle, so no local Gradle install is needed:co.dfns:dfns-sdk-java:1.0.0 into ~/.m2/repository. The local repository is on Maven’s search path by default, so add the dependency to your pom.xml:./gradlew publishToMavenLocal after pulling a newer version of the SDK.Quick start
1. Read-only operations
For read-only operations (listing wallets, fetching balances, etc.), you only need an auth token:2. Signing requests
State-changing operations (creating wallets, signing transactions, etc.) require cryptographic request signing:3. User action signing
When the user signs on their own device (for example with a passkey), useDfnsDelegatedClient (or DfnsDelegatedAsyncClient). It needs no signer and splits every signed operation into an Init call that returns a challenge and a Complete call that takes the signed challenge, for example client.wallets.transferAssetInit / transferAssetComplete. See Delegated signing for a full example.
Next steps
- Create a service account for server-to-server authentication with long-lived tokens
- Development guide for detailed request signing architecture