---
title: "Undelegate Ephemeral ATA"
method: POST
path: "/v1/spl/undelegate-ephemeral-ata"
---

# Undelegate Ephemeral ATA

`POST /v1/spl/undelegate-ephemeral-ata`

Build an unsigned ephemeral-rollup transaction that undelegates a wallet's ephemeral ATA (eATA) for a mint, committing its balance back toward the base layer. Accepts an optional `Authorization: Bearer <token>` header.

## Request body

- object
  - `payer` string, required
  - `mint` string, required — SPL mint for the eATA to undelegate.
  - `cluster` union — Optional. Cluster selector or custom http(s) RPC URL.
    - 'mainnet' | 'devnet'
    - string

## Response `200`

Unsigned serialized transaction

- object
  - `kind` 'undelegateEphemeralAta', required
  - `version` 'legacy' | 'v0', required
  - `transactionBase64` string, required
  - `sendTo` 'base' | 'ephemeral', required
  - `sendRpcEndpoint` string, uri, required — Exact ephemeral RPC endpoint where the signed undelegation transaction should be submitted.
  - `recentBlockhash` string, required
  - `lastValidBlockHeight` integer, required
  - `instructionCount` integer, required
  - `requiredSigners` string[], required

## Other responses

- `400` — Build error
- `422` — Validation error

---

[API](https://skmtc.dev/magicblock/apis/magicblock-router-api.md) · [All operations](https://skmtc.dev/magicblock/apis/magicblock-router-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/magicblock/magicblock-router-api/revisions/f024efa907c6/schema)
