Skip to main content
The CDP Java SDK is generated from the CDP OpenAPI definition and exposed through the canonical com.coinbase.cdp package.

Installation

The Java SDK is distributed through GitHub Packages. Configure Gradle with a GitHub token that has the read:packages scope.
  1. Add credentials to ~/.gradle/gradle.properties:
  1. Add the GitHub Packages repository and dependency to build.gradle.kts:

Configure a client

CDP_WALLET_SECRET is required only for operations that require wallet authentication. API-key-authenticated flexible custody operations do not require it.

API resources

The client exposes API resources such as:
  • client.evmAccounts() and client.evmSmartAccounts()
  • client.solanaAccounts()
  • client.accounts(), client.paymentMethods(), client.depositDestinations(), and client.transfers()
  • client.policyEngine(), client.endUserAccountManagement(), and client.endUserAccounts()
End User Accounts operations that require end-user-only authentication are intentionally not included in this backend SDK. API reference documentation is available at CDP Java SDK API Reference. Runnable usage examples are available at https://github.com/coinbase/cdp-sdk/tree/main/examples/java.