Skip to main content
This content applies to WaaS 1.0 only. We highly recommend that you upgrade to WaaS 2.0.
Withdraw transactions in MPC Wallets and Custodial Wallets follow distinct creation processes via APIs. In MPC Wallets, kindly take note of the distinctions between transactions created on Account-based blockchains and those on UTXO-based blockchains.

Code Samples for MPC Wallets

The following code samples focus on Account-based blockchains. For information on how to create a transaction on UTXO-based blockchains, please refer to this guide. The following codes demonstrate the transfer of 0.1 ETH to a specified receiving address via Account-based blockchains.
For more information on the “mpc_create_transaction” endpoint, click here.

Code Samples for Custodial Wallets

In Custodial Wallets, an on-chain transaction will be triggered if the receiving address is an external address. Conversely, if the receiving address belongs to a Custodial Wallet managed by Cobo, the transaction will be executed off-chain without incurring any gas fees.
For more information on the “new_withdraw_request” endpoint, click here.