This content applies to WaaS 1.0 only. We highly recommend that you upgrade to WaaS 2.0.
Overview
This guide introduces Cobo WaaS API in Java SDK, enabling developers to integrate with Cobo’s Custodial/MPC services seamlessly using the Java programming language.Before You Begin
- Ensure that you have created an account and configured Cobo’s Custodial/MPC services. For detailed instructions, please refer to the Quickstart guide.
- To access the API documentation, navigate to the API references section.
Using the Cobo Java SDK
GitHub
The Official Java SDK for Cobo WaaS API.Requirements
- JDK8
- JDK17 or newer
Installation
Step 1. Add the JitPack repository to your build file gradle:Code Sample
Generate Key Pair
Initialize ApiSigner
ApiSigner
can be instantiated through new LocalSigner("secretkey" )
In certain scenarios, the private key may be restricted from export, such as when it is stored in AWS Key Management Service (KMS).
In such cases, please pass in a custom implementation using the ApiSigner interface:
Initialize RestClient
These can be instantiated using the corresponding factory method provided byCoboApiClientFactory
.
Custodial Wallet Sample
MPC Wallet Sample
Handling Response
Handling API Errors
Feel free to share your feedback to improve our documentation!