This content applies to WaaS 1.0 only. We highly recommend that you upgrade to WaaS 2.0.
- Transactions on a UTXO-based blockchain consist of inputs and outputs. Each input refers to a specific UTXO (unspent transaction output) from a previous transaction. When you create a new transaction, you use one or more UTXOs as inputs, and you can specify different destination addresses (i.e., the ‘to’ address) for the outputs.
- When you spend a fraction of a UTXO, the remaining amount needs to be sent back to you. This is typically done by including one of your own addresses as a “change address” in the transaction. This change address receives the remaining funds that are not sent to the destination addresses.
Code Samples for MPC Wallets
If the transaction is initiated using all available UTXOs under an MPC Wallet:Code Samples for Custodial Wallets
The transaction is initiated using all UTXOs under a Custodial Wallet:Feel free to share your feedback to improve our documentation!