Making Transfers inside Cloak
Introduction
Cloak is an exact copy of Scroll's EVM. As it is a full fledged EVM execution environment, one can do ERC20 token transfers or interact with smart contracts.
The simplest use case is to let users hold tokens in a wallet on Cloak (similar to a shielded account) and to make transfers to other users. In this document we will present this use case.
Making Token Transfers
See the full example at transfer.ts example in the @scroll-tech/cloak-js
package.
To make ERC20 transfers (for L3 WETH or any other deposited token), simply call the token contract transfer
function, just like you would on other EVM chains.
By default, this transaction and transaction receipt can only be queried by the sender and the recipient, as well as the chain admins. Other users cannot access this information.