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 PHP SDK, enabling developers to integrate with Cobo’s Custodial/MPC services seamlessly using the PHP 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 PHP SDK
GitHub
The Official PHP SDK for Cobo WaaS API.Requirements
PHP 7.0 or newer.Installation
The cobo_custody library can be conveniently installed using Composer.- first you need to install Composer
- then add dependency in composer.json
Code Sample
Generate Key Pair
Initialize ApiSigner
ApiSigner
can be instantiated through $signer = new LocalSigner($key['apiSecret']);
Initialize RestClient
Custodial Wallet Sample
MPC Wallet Sample
Handling Response
Handling API Errors
Feel free to share your feedback to improve our documentation!