Skip to main content

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.

Register a token

Create an account

Create an account with the createAccount JSON RPC API.

Create an account

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

Inbound transfers

List money orders

You can list money orders by their status with the following JSON RPC APIs:

List money orders

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:

The following example redeems a money order from an inbound transfer.

Redeem a money order

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 a money order

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.

Create an outbound transfer

Submit a forced outbound transfer

A forced outbound transfer has to be processed before it expires.

Forced outbound transfer