Workflow sequence for common operations
This topic illustrates the event sequence for common rollup operations across the network and the interaction between the various components of the rollup.
Register a token
A rollup administrator can call the rollup smart contract to register an ERC20 token.
Create an account
Create an account with the createAccount
JSON RPC API.
Register an inbound transfer
Inbound transfers are when funds are transferred from an Ethereum address to the rollup. That means funds enter the rollup, and existing rollup accounts can later be credited with the external funds.
An inbound transfer sends funds directly from an Ethereum address to the rollup smart contract
List money orders
You can list money orders by their status with the following JSON RPC APIs:
Redeem a money order
Redeem a money order with the redeemMoneyOrder
JSON RPC API.
Money orders for redemption can be created in the following ways:
- External funds that enter the rollup as an inbound transfer.
- Money orders created in the rollup.
The following example redeems a money order from an inbound transfer.
Create a money order
Create a money order with the createMoneyOrder
JSON RPC API.
The money order is encrypted before being sent to the operator.
Create an outbound transfer
An outbound transfer is when funds are transferred from a rollup account to an Ethereum address. You can use the createOutboundTransfer
API to create the transfer.
Operators receive outbound transfer requests, check them for validity, create batches of them and batch proofs.
Submit a forced outbound transfer
A forced outbound transfer has to be processed before it expires.