Overview
The Private Ephemeral SPL Token API allows you to build transactions with SPL tokens on MagicBlock’s Ephemeral Rollup. This API provides endpoints to manage ephemeral token accounts, deposits, withdrawals, and delegation operations.Health & Configuration
- Root - Check API health
- Get Config - Retrieve API configuration settings
Setup & Initialization
- Initialize Global Vault - Set up the global vault for a token mint
- Initialize ATA for Global Vault - Initialize a global vault token account
Token Operations
- Initialize ATA - Initialize a token account required for sender and receiver
- Initialize Ephemeral ATA - Initialize an ephemeral token account required for sender and receiver
- Deposit SPL Tokens - Deposit tokens into an ephemeral account
- Delegate Ephemeral ATA - Delegate an ephemeral account to a Delegation Program
- Transfer SPL Tokens - Transfer tokens between accounts using SPL checked transfer (Note: Ephemeral ATA must be initialized and delegated before transfer)
- Undelegate Ephemeral ATA - Remove delegation from an ephemeral account
- Withdraw SPL Tokens - Withdraw tokens from an ephemeral account
Permission Management
- Create Ephemeral ATA Permission - Create a permission account for an ephemeral ATA
- Delegate Ephemeral ATA Permission - Delegate an ephemeral ATA’s permission to a Delegation Program to enforce access control
- Reset Ephemeral ATA Permission - Reset permission flags on an ephemeral ATA
- Undelegate Ephemeral ATA Permission - Undelegate an ephemeral ATA’s permission before closing account

