magicblock
Was er macht
Diese Fähigkeit behandelt MagicBlock, eine Sammlung von Solana-Werkzeugen für schnelle Apps mit geringer Latenz. Sie erklärt Ephemeral Rollups, delegierte Konten, Orakel, Zufallszahlen und private Zahlungen. Sie ist für Entwickler gedacht, die MagicBlock-Funktionen wählen oder ihre Fehler suchen.
Wann du ihn nutzt
- ✓Wenn du eine schnelle Echtzeit-Solana-App wie ein Spiel bauen willst.
- ✓Wenn du Zufallszahlen, Orakeldaten oder private Zahlungen auf Solana brauchst.
- ✓Wenn eine MagicBlock-Integration fehlschlägt und du Hilfe bei der Fehlersuche brauchst.
Link zum Skill
https://github.com/internet-court/internet-court-skill/blob/main/vendored/magicblock/magicblock-dev/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Ich baue ein schnelles Solana-Spiel und möchte wissen, ob MagicBlock Ephemeral Rollups dafür passen.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent erklärt, welches MagicBlock-Produkt zu deinem Bedarf passt, und hilft beim Entwurf der Kontenstruktur und der Integration. Er hilft auch bei Delegierungsproblemen, denn ein delegiertes Konto sieht auf der Haupt-Blockchain von Solana anders aus.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
MagicBlock Development Skill
Pair with the solana-dev skill
Use this skill for MagicBlock-specific concerns: ER/PER, delegation, oracles, Session Keys, cranks, VRF,
Magic Actions, eSPL, and private payments. For general Solana or Anchor work such as scaffolding, PDAs,
account layouts, SPL tokens, clients, wallets, or LiteSVM/Mollusk testing, also load solana-dev.
Key Concepts
Ephemeral Rollups enable high-performance, low-latency transactions by locking a delegated account on the base layer while an ER clone continues to execute under the account's original program owner. They are useful for gaming, real-time apps, and fast transaction throughput.
Ephemeral Accounts are born, used, and closed only inside an ER. They are useful for temporary high-frequency state, but they never commit to Solana and therefore cannot be the only copy of durable ownership, balances, rewards, or settlement results.
Delegation temporarily assigns the base-layer account to the Delegation Program and clones it into the ER with its original program owner. Normal program ownership, signer, authority, and account constraints still apply on the ER; delegation status is a routing and lifecycle concern, not a new application authorization rule.
Delegation debugging invariant: a properly delegated account looks owned by
the delegation program on base, owned by the original program on the ER endpoint
returned by router getDelegationStatus, and cloned into the ER with
delegated=true.
For the verified SDK v0.16.2 snapshot, use MagicIntentBundleBuilder to
schedule commit and commit-and-undelegate intents. Do not use the deprecated
free functions commit_accounts and commit_and_undelegate_accounts.
Private Ephemeral Rollups (PER) gate a delegated account inside a TEE-backed validator with an ER-local EphemeralPermission. Delegate only the data account on the base layer, then create, update, and close its permission on the ER with CreateEphemeralPermissionCpi, UpdateEphemeralPermissionCpi, and CloseEphemeralPermissionCpi. Do not create or delegate a separate base-layer permission account.
Magic Actions are base-layer instructions scheduled inside an ER transaction via
MagicIntentBundleBuilder.add_post_commit_actions(...). Each attempted base-layer transaction applies
its commit and actions atomically. If any BaseAction fails, the committor removes every BaseAction in
that affected TransactionStrategy before retrying its remaining commit strategy; actions in other
transaction/finalize strategies are outside that removal scope. Observe and reconcile every originally
scheduled action: scheduling or eventual commit success alone does not prove that any of them ran.
Commit sponsorship: every delegated account gets 10 free commits to base layer by default. To lift
the cap, either re-delegate (refreshes the quota) or attach the validator-scoped magic_fee_vault PDA
and a delegated fee payer to the intent bundle. The delegated payer is debited; the fee vault is the
validated destination credited with that commit fee.
Lamports top-up: when a delegated account (e.g. a delegated fee payer) needs more lamports on the ER side, use lamportsDelegatedTransferIx from the SDK. The transaction is submitted on base layer — the Ephemeral SPL Token program creates a single-use lamports PDA, funds it, and delegates it so the ER credits the destination.
Ephemeral SPL Token has two surfaces. In the SDK lifecycle model, clients use
delegateSpl/transferSpl/undelegateIx/withdrawSpl, and the ER balance appears as a normal SPL token
account at the owner's canonical ATA address, so Anchor programs can use plain SPL Token CPI. In the
direct-program model, contracts use ephemeral-spl-api and explicitly work with the eATA/global-vault
PDAs; do not apply the canonical-ATA model to that raw surface.
Pricing Oracle republishes supported market feeds for Solana/ER consumers. A safe integration verifies the expected feed identity, upstream publish-time freshness, value domain, exponent, checked arithmetic, and user price bounds; successful deserialization alone is not price validation.
Session Keys authorize a temporary signer for constrained application actions. Session validity is separate from SPL token authority: token spending also requires an explicit, bounded token delegate allowance.
Architecture:
┌─────────────────┐ delegate ┌─────────────────────┐
│ Base
Häufige Fragen
Was ist ein Ephemeral Rollup?
Eine schnellere Ebene, auf der ein delegiertes Konto weiterläuft, während sein Zustand zurück auf Solana abgerechnet werden kann.
Können temporäre Konten meine endgültigen Guthaben halten?
Nein. Temporäre Konten werden nie auf Solana festgeschrieben und können deshalb nicht die einzige Kopie von Guthaben oder Ergebnissen sein.
Soll ich zusätzlich eine andere Solana-Fähigkeit laden?
Ja. Laut der Fähigkeit sollte sie mit der allgemeinen Solana-Entwicklungsfähigkeit für Gerüst, Wallets und Tests kombiniert werden.
Details
Originalbeschreibung des Autors
Design, implement, and debug MagicBlock applications on Solana. Covers Ephemeral Rollups with delegated state; ER/PER architecture and settlement; private payments and token flows; oracles and randomness; scheduling and temporary authority; security and local validation. Use for MagicBlock product selection, integration, cross-product design, or production troubleshooting.
Beliebtheit
- GitHub-Sterne
- 7.0k
- Platz im Ranking
- #13641
- Lizenz
- —
- Aktualisiert
- 26.10.2026
Kommentare
- …
Weitere Skills aus diesem Repository
internet-court
7.0kHilft deinem Agenten, sicher mit einem anderen KI-Agenten oder einem kostenpflichtigen Dienst zu zahlen, Aufträge zu vergeben oder abzuwickeln, und verweist auf die passende Anleitung.
genlayer-erc7710-connector
7.0kHilft deinem Agenten, ein KI-Prüfergebnis mit einem Berechtigungssystem zu verbinden, sodass eine schlechte Bewertung Berechtigungen eines Agenten einschränken oder aufheben kann.
genlayer-intelligent-contracts
7.0kHilft deinem Agenten, Regeln, Belege und Ergebnisse eines KI-Richters festzulegen, der prüft, ob ein anderer Agent seinen Auftrag eingehalten hat.
x402-erc7710
7.0kHilft deinem Agenten, für Webdienste Anfrage für Anfrage zu bezahlen und laufende Ausgaben innerhalb eines Berechtigungsbudgets einzurichten.
Ähnliche Skills
api-connector-builder
280kLässt deinen Agenten neue API-Anbindungen nach dem bestehenden Muster bauen. Nutze es, wenn du eine weitere Integration ergänzen willst, ohne neue Wege einzuführen.
api-design
280kHilft deinem Agenten, REST-APIs nach Best Practices zu entwerfen. Nützlich für die Kommunikation, die Fehlerausgabe und die Organisation von Daten.
backend-patterns
280kHilft deinem Agenten bei Architekturmustern für die Serverseite und bei der Datenbankoptimierung. Nützlich zum Bauen und Prüfen von Server-Code.