magicblock deposit
magicblock_depositBuild an unsigned transaction to deposit SPL tokens from Solana into an Ephemeral Rollup, then use preview, sign, and submit steps.
Instructions
Build an unsigned transaction to deposit SPL tokens from Solana into an Ephemeral Rollup. Then use sap_preview_transaction, sap_sign_transaction, and sap_submit_signed_transaction. Do not create local signing scripts. Builder fee applies.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mint | No | SPL mint. Defaults to USDC (mainnet) or devnet USDC | |
| owner | Yes | Wallet pubkey that owns the tokens and will sign | |
| amount | Yes | Base-unit amount to deposit (integer, minimum 1) | |
| cluster | No | Cluster: 'mainnet', 'devnet', or custom RPC URL | |
| validator | No | Optional ER validator pubkey. Defaults to the selected ephemeral RPC identity. | |
| idempotent | No | Use idempotent variants for preparatory init instructions (default true) | |
| initIfMissing | No | Initialize the transfer queue if missing (default true) | |
| initAtasIfMissing | No | Initialize associated token accounts if missing (default true) | |
| initVaultIfMissing | No | Initialize the vault 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. |