MagicBlock — Ephemeral Rollups

Real-time and gaming. ephemeral-rollups-sdk 0.17

Docs: docs.magicblock.gg — ER borrows Solana state via delegation, executes at 10–50ms gasless, then commits back. Lifecycle: initialize → delegate CPI → execute on ER → commit → undelegate.

use ephemeral_rollups_sdk::anchor::{delegate, commit, ephemeral};
#[ephemeral]
pub fn increment(ctx: Context<Increment>) -> Result<()> {
    ctx.accounts.counter.count += 1;
    Ok(())
}

Resources: Quickstart, GitHub. Use cargo add ephemeral-rollups-sdk —features anchor.