This article is targeted at WaaS 1.0 users who are considering upgrading to WaaS 2.0. It introduces the benefits of the upgrade and provides step-by-step instructions to successfully complete the upgrade process.Documentation Index
Fetch the complete documentation index at: https://cobo.com/developers/llms.txt
Use this file to discover all available pages before exploring further.
Key enhancements in WaaS 2.0
WaaS 2.0 is a major upgrade from WaaS 1.0, designed to support diverse Web3 scenarios such as payments, tokenization, and automated fund management. It enables enterprises and developers to build Web3 applications more efficiently and cost-effectively. The three core benefits of upgrading to WaaS 2.0 are:- Enhanced capabilities: Introduces new modules including Payment Solutions, Tokenization, Fee Station, Auto-sweep, Travel Rule, and more.
- More efficient development: A unified API architecture reduces the number of API calls required to accomplish the same functionality, lowering integration and maintenance complexity.
- Improved operations: Upgraded webhook functionality supports more event types and provides built-in tools such as logs, retries, and simulated testing, enhancing observability and debugging efficiency.
| Dimension | WaaS 1.0 | WaaS 2.0 |
|---|---|---|
| API Architecture | Wallet-type-based structure: The same business functionality required different API operations depending on wallet type. For example:
| Scenario-driven structure: The same business functionality can now be completed with a single API operation. For example:
|
| New Feature Modules | N/A |
|
| Webhook Mechanism | Only supported transaction status notifications. |
|
| Developer Tools | Provided basic SDKs. | Expands the developer ecosystem with additional tools:
|
Technical changes and migration reference
This section is intended for developers. It explains the key technical changes between WaaS 1.0 and WaaS 2.0 in areas such as API design, authentication, and callback mechanisms, and provides a comparison table of common API operations to help you migrate quickly.Technical changes
The following table summarizes the key technical changes between WaaS 1.0 and WaaS 2.0, including API design, authentication, and callback mechanisms.| WaaS 1.0 | WaaS 2.0 | |
|---|---|---|
| API design | HTTP endpoints supporting the GET and POST methods. | RESTful API structured into distinct domains, such as wallets, transactions, and webhooks. The API follows resource-oriented design principles for endpoint definition and supports standard HTTP methods including GET, POST, PUT, and DELETE. |
| API key and authentication |
|
|
| Transaction notification | Supports transaction status-related events only. |
|
| Withdrawal confirmation | A mechanism used for confirming withdrawals initiated through WaaS API. |
|
| Supported wallet types |
| |
| Asset model |
|
|
| Balance model |
|
|
| Balances and amounts |
|
|
| Address generation |
| [Custodial Wallets / MPC Wallets] Addresses are generated based on a specified chain, such as ETH, and can then be used by all tokens on the same chain. |
| Transaction ID | The unique ID of a transaction. |
|
API operation comparison
The following table lists the API operations needed for common wallet operations in WaaS 1.0 and 2.0 respectively. You can refer to this table when migrating your code from 1.0 to 2.0.| WaaS 1.0 | WaaS 2.0 | |
|---|---|---|
| Create a wallet | Not supported since the API key is wallet-specific | Create wallet |
| Create an address |
| Create addresses in wallet |
| Withdraw tokens |
| Transfer token |
| RBF transaction (Speed up) | [MPC Wallets] Speedup Transaction | Speed up transaction |
| RBF transaction (Drop) | [MPC Wallets] Drop Transaction | Drop transaction |
| Cancel transaction | Not supported | Cancel transaction |
| Call a contract | Not supported | Call smart contract |
| Sign a message | Not supported | Sign message |
| Query a transaction |
|
Upgrade to 2.0
This section introduces the detailed steps to upgrade from WaaS 1.0 to 2.0.Prerequisites
Reach out to our support team at help@cobo.com to migrate from Cobo Custody to Cobo Portal.Get started with WaaS 2.0
Follow the instructions in Send your first request to set up your account, create and register your API key, integrate a WaaS SDK if necessary, and send your first API request to the WaaS 2.0 service.Rewrite your code
Once you complete the initial setup, it is time to rewrite your code by replacing the 1.0 API operations with 2.0 operations. Refer to API operation comparison for a detailed comparison between 1.0 and 2.0 API operations. You can also refer to Get started with Custodial Wallets (Asset Wallets) for a step-by-step guide on how to create a Custodial Wallet (Asset Wallet), generate wallet addresses, and receive and withdraw tokens. Guides for other wallet types will be available in the future.Set up webhook and callback endpoints
Set up the webhook and callback endpoints and register them in Cobo Portal. To understand webhook events, callback messages, and the differences in webhook/callback mechanisms between WaaS 1.0 and WaaS 2.0, refer to Introduction to webhooks and callbacks. To learn the detailed steps of the setup, see Set up a callback or webhook endpoint. To register the endpoint, see Register a webhook endpoint and Register a callback endpoint.The endpoints you set up for WaaS 1.0 will not receive any messages from the WaaS 2.0 service.
