Request refers to transaction that transfers assets or data between root chain and child chain. Types of request transaction are enter/exit, etc.
Enter refers to the transfer of assets or data from the root chain to child chain. For example, ERC20 tokens come into the child chain from Ethereum through enter requests. Tokens should be in requestable forms to enter into the child chain.
Procedure for the token issued in the root chain to enter the child chain is as follows:
- Convert token in Ethereum to a requestable token.
- Send a request transaction to enter the child chain using requestable token.
- When the request is processed, the token in the root chain are moved from the root chain to the child chain. The balance of the token in the root chain decreases, and the balance of token in the child chain increases.
Exit refers to moving an asset or data from child to root chain. For ERC20 token, exit means to transfer tokens from child chain to root chain.
Procedure for moving tokens from child chain to root chain is as follows:
- Send a transaction that includes an exit request to transfer the requestable token in the child chain to root chain.
- When the request is processed, the requestable token in the child chain is transferred to root chain. The balance in the root chain increases, and it decreases in the child chain.
- Finally, convert the requestable token back to an ERC20 token.