
Account Lifecyle for executing transactions in real-time with ER:
1
Delegate Account
State accounts must be delegated to an specific ER validator first by
changing the account owner to the Delegation
Program
DELeGGvXpWV2fqJUhqcF5ZSYMS4JTLjteaAMARRSaeSh
and specifying parameters
like ER validator, account lifetime and synchronization frequency.These public valdiators are supported for development. Make sure to upgrade
your program with the specific ER validator in delegation config:
- Asia (devnet): MAS1Dt9qreoRMQ14YQuhg8UTZMMzDdKhmkZMECCzk57
- EU (devnet): MEUGGrYPxKk17hCr7wpT6s8dtNokZj5U2L57vjYMS8e
- US (devnet): MUS3hc9TCw4cGC12vHNoYcCGzJG1txjgQLZWVoeNHNd
- Local ER (localhost): mAGicPQYBMvcYveUZA5F5UNNwyHvfYh5xkLS2Fr1mev
2
Execute Transaction in real-time
Delegated state accounts are updated in real-time with transactions on the
ER directly or via Magic
Router. The
initial transaction on ER clones the delegated account from base layer
to the ephemeral rollup.
3
Commit State
The operator commits the ephemeral state to the base layer periodically or
on-demand, including new state and relevant pointers. The account state is
finalized using a fraud-proof mechanism as detailed in the paper.
4
Execute Transaction in real-time continuously
Delegated account states can continuously be updated in real-time on the ER
directly or via Magic
Router.
5
Undelegate Account
Delegated account states are committed through ER validator to the base
layer and the account owner are reversed from the Delegation
Program
DELeGGvXpWV2fqJUhqcF5ZSYMS4JTLjteaAMARRSaeSh
to the original owner.