Skip to main content
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 Python SDK, enabling developers to integrate with Cobo’s Custodial/MPC services seamlessly using the Python 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 Python SDK

GitHub

The Official Python SDK for Cobo WaaS API.

Requirements

Python 3.7 or newer.

Installation

Please run the first command for installation. Note that the source code below is only required for those looking to modify the package. :
Install from source with:

Code Sample

Generate Key Pair

For more information on the API Key, please click here.

Initialize ApiSigner

ApiSigner can be instantiated through
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

Custodial Wallet Sample

MPC Wallet Sample

Handling Response

The response is an ApiResponse object.

Handling API Errors