magicblock

MagicBlock Ephemeral Rollups Skill

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "magicblock" with this command: npx skills add magicblock-labs/magicblock-dev-skill/magicblock-labs-magicblock-dev-skill-magicblock

MagicBlock Ephemeral Rollups Skill

What this Skill is for

Use this Skill when the user asks for:

  • MagicBlock Ephemeral Rollups integration

  • Delegating/undelegating Solana accounts to ephemeral rollups

  • High-performance, low-latency transaction flows

  • Crank scheduling (recurring automated transactions)

  • VRF (Verifiable Random Function) for provable randomness

  • Dual-connection architecture (base layer + ephemeral rollup)

  • Gaming and real-time app development on Solana

Key Concepts

Ephemeral Rollups enable high-performance, low-latency transactions by temporarily delegating Solana account ownership to an ephemeral rollup. Ideal for gaming, real-time apps, and fast transaction throughput.

Delegation transfers account ownership from your program to the delegation program, allowing the ephemeral rollup to process transactions at ~10-50ms latency vs ~400ms on base layer.

Architecture:

┌─────────────────┐ delegate ┌─────────────────────┐ │ Base Layer │ ───────────────► │ Ephemeral Rollup │ │ (Solana) │ │ (MagicBlock) │ │ │ ◄─────────────── │ │ └─────────────────┘ undelegate └─────────────────────┘ ~400ms ~10-50ms

Default stack decisions (opinionated)

Programs: Anchor with ephemeral-rollups-sdk

  • Use ephemeral-rollups-sdk with Anchor features

  • Apply #[ephemeral] macro before #[program]

  • Use #[delegate] and #[commit] macros for delegation contexts

Dual Connections

  • Base layer connection for initialization and delegation

  • Ephemeral rollup connection for operations on delegated accounts

Transaction Routing

  • Delegate transactions → Base Layer

  • Operations on delegated accounts → Ephemeral Rollup

  • Undelegate/commit transactions → Ephemeral Rollup

Operating procedure (how to execute tasks)

  1. Classify the operation type
  • Account initialization (base layer)

  • Delegation (base layer)

  • Operations on delegated accounts (ephemeral rollup)

  • Commit state (ephemeral rollup)

  • Undelegation (ephemeral rollup)

  1. Pick the right connection
  1. Implement with MagicBlock-specific correctness

Always be explicit about:

  • Which connection to use for each transaction

  • Delegation status checks before operations

  • PDA seeds matching between delegate call and account definition

  • Using skipPreflight: true for ER transactions

  • Waiting for state propagation after delegate/undelegate

  1. Add appropriate features
  • Cranks for recurring automated transactions

  • VRF for verifiable randomness in games/lotteries

  1. Deliverables expectations

When you implement changes, provide:

  • Exact files changed + diffs

  • Commands to install/build/test

  • Risk notes for anything touching delegation/signing/state commits

Progressive disclosure (read when needed)

  • Core delegation patterns: delegation.md

  • TypeScript frontend setup: typescript-setup.md

  • Cranks (scheduled tasks): cranks.md

  • VRF (randomness): vrf.md

  • Reference links & versions: resources.md

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

magicblock

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

A Python CLI skill for Cutout.Pro visual APIs — background removal, face cutout, and photo enhancement. Supports file upload & image URL input.

Call Cutout.Pro visual processing APIs to perform background removal, face cutout, and photo enhancement. Supports both file upload and image URL input, retu...

Registry SourceRecently Updated
Coding

client-onboarding-agent

Client onboarding and business diagnostic framework for AI agent deployments. Covers 4-round diagnostic process, 6 constraint categories, deployment SOP with...

Registry SourceRecently Updated