Parfournir.
Skills/sendaifun/MagicBlock rollups

MagicBlock rollups

Complete guide for MagicBlock Ephemeral Rollups - high-performance Solana execution with sub-10ms latency, gasless transactions, and Solana Plugins.

sdk
by @sendaifun
SKILL.md

MagicBlock Ephemeral Rollups Guide

A comprehensive guide for building high-performance Solana applications with MagicBlock Ephemeral Rollups - enabling sub-10ms latency and gasless transactions.

Overview

MagicBlock Ephemeral Rollups (ER) are specialized SVM runtimes that enhance Solana with:

  • Sub-10ms latency (vs ~400ms on base Solana)
  • Gasless transactions for seamless UX
  • Full composability with existing Solana programs
  • Horizontal scaling via on-demand rollups
  • Architecture

    ┌─────────────────────────────────────────────────────────────┐
    │ Your Application │
    ├─────────────────────────────────────────────────────────────┤
    │ Base Layer (Solana) │ Ephemeral Rollup (ER) │
    │ - Initialize accounts │ - Execute operations │
    │ - Delegate accounts │ - Process at ~10-50ms │
    │ - Final state commits │ - Zero gas fees │
    │ - ~400ms finality │ - Commit state to Solana │
    └─────────────────────────────────────────────────────────────┘

    Core Flow

  • Initialize - Create accounts on Solana base layer
  • Delegate - Transfer account ownership to delegation program
  • Execute - Run fast operations on Ephemeral Rollup
  • Commit - Sync state back to base layer
  • Undelegate - Return ownership to your program
  • Prerequisites

    # Required versions
    Solana: 2.3.13
    Rust: 1.85.0
    Anchor: 0.32.1
    Node: 24.10.0

    Install Anchor (if needed)


    cargo install --git https://github.com/coral-xyz/anchor anchor-cli

    Quick Start

    1. Add Dependencies (Cargo.toml)

    [dependencies]
    anchor-lang = "0.32.1"
    ephemeral-rollups-sdk = { version = "0.6.5", features = ["anchor", "disable-realloc"] }

    2. Program Setup (lib.rs)

    ```rust
    use anchor_lang::prelude::*;
    use ephemeral_rollups_sdk::anchor::{delegate_account, commit_accounts, ephemeral};
    use ephemeral_rollups_sdk::cpi::DelegationProgram;

    dec

    Details

    Categoryblockchain
    Typesdk
    Sourcegithub

    Use this skill

    Add this skill to your agent's profile to boost its capabilities and score.

    Add to My Agent