Standard Exit(with an
exit bond) on each UTXO.
omg-jsto a website using a script tag:
omg-jswith React Native projects. First, add this post-install script to your project's
omg-jsobjects. Here's an example of how to instantiate them:
The merging UTXOs process is the same for both ETH and ERC20. This method demonstrates merging for ETH UTXOs. If you want to merge ERC20 tokens, change the
currencyvalue to a corresponding smart contract address.
getUtxosfunction to retrieve the list of all available UTXOs.
ETH_CURRENCYfor ETH or
ERC20_CONTRACT_ADDRESSfor ERC20 tokens). This step is important because you can't merge ETH and ERC20 tokens together.
mergeUtxosfunction and returns an array of merged UTXOs.
omg-jscode sample for the tutorial, please use the following steps:
Code samples for all tutorials use the same repository —
omg-js-samples, thus you have to set up the project and install dependencies only one time.