magicblock withdraw
magicblock_withdrawWithdraw SPL tokens from an Ephemeral Rollup to Solana using an unsigned transaction. Provide owner, mint, and amount.
Instructions
Build an unsigned transaction to withdraw SPL tokens from an Ephemeral Rollup back to Solana. Then use sap_preview_transaction, sap_sign_transaction, and sap_submit_signed_transaction. Builder fee applies.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mint | Yes | SPL mint on Solana | |
| owner | Yes | Wallet pubkey that owns the tokens and will sign | |
| amount | Yes | Base-unit amount to withdraw (integer, minimum 1) | |
| cluster | No | Cluster: 'mainnet', 'devnet', or custom RPC URL | |
| validator | No | Optional ER validator pubkey | |
| idempotent | No | Use idempotent variants for preparatory init instructions (default true) | |
| escrowIndex | No | Optional escrow index for the withdrawal | |
| initIfMissing | No | Initialize transfer queue if missing (default true) | |
| initAtasIfMissing | No | Initialize ATAs if missing (default true) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | MCP content blocks returned to the caller. | |
| isError | No | True when the tool result represents an application-level error. |