Skip to main content
This content applies to WaaS 1.0 only. We highly recommend that you upgrade to WaaS 2.0.

Overview

Web3 transactions typically involve interacting with smart contracts on the blockchain, with applications extending to decentralized applications (dApps), non-fungible tokens (NFTs), and beyond. This guide will outline how developers can create Web3 transactions in MPC Wallets using the APIs provided by Cobo. Note: The code samples below are only applicable to Web3 Wallets under the MPC Wallets.

Code Samples

Initiating a withdraw transaction using Web3 Wallets (e.g., sending 0.01 ETH)

Step 1: Initialize the mpc_client Step 2: Create the withdraw transaction

Interacting with a smart contract using Web3 Wallets

Step 1: Initialize the mpc_client Step 2: Pass in calldata to call a smart contract

For more information on the ‘create_transaction’ endpoint, please click here.