
Account Lifecycle 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 the ER
validator.These public validators are supported for development. Make sure to add the specific ER validator in your delegation instruction:
Mainnet- Asia (as.magicblock.app):
MAS1Dt9qreoRMQ14YQuhg8UTZMMzDdKhmkZMECCzk57 - EU (eu.magicblock.app):
MEUGGrYPxKk17hCr7wpT6s8dtNokZj5U2L57vjYMS8e - US (us.magicblock.app):
MUS3hc9TCw4cGC12vHNoYcCGzJG1txjgQLZWVoeNHNd - TEE (mainnet-tee.magicblock.app):
MTEWGuqxUpYZGFJQcp8tLN7x5v9BSeoFHYWQQ3n3xzo - Asia Tokyo (as-tyo.magicblock.app):
MSHuBweMkNp4yPLDkPLA8bLRHbDmURWjYzsxrcBjix8 - South America (sa.magicblock.app):
MSARyz2yVTkqiYQWWgaEtUKug7oCF7PphE9GjEYHtDh
- Asia (devnet-as.magicblock.app):
MAS1Dt9qreoRMQ14YQuhg8UTZMMzDdKhmkZMECCzk57 - EU (devnet-eu.magicblock.app):
MEUGGrYPxKk17hCr7wpT6s8dtNokZj5U2L57vjYMS8e - US (devnet-us.magicblock.app, validator 2.0):
MUS3hc9TCw4cGC12vHNoYcCGzJG1txjgQLZWVoeNHNd - TEE (devnet-tee.magicblock.app):
MTEWGuqxUpYZGFJQcp8tLN7x5v9BSeoFHYWQQ3n3xzo
0.18.x reads the commit logs of both; SDK 0.20.x reads only 2.0 commit
logs, so use it only with devnet-us.Localnet- Local ER (localhost:7799):
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 on demand,
when your program schedules a commit, including new state and relevant
pointers. Validators do not commit delegated accounts automatically. 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.
