earn_withdraw
Withdraw cryptocurrency from Earn staking to your Simple Wallet pocket. Preview the operation first, then confirm to execute; funds stop earning rewards and return operation details.
Instructions
Withdraw funds from Earn (Staking) back to Simple Wallet pocket. Funds will stop earning rewards after withdrawal. Returns operation details with type: withdrawal. Use earn_get_positions to check your Earn balance. Operation status ENUM: pending (operation in progress), completed (successfully finished), failed (operation failed or was cancelled). [PRIVATE] First call without confirm=true returns a preview; set confirm=true only after the user agrees.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jwt | No | Optional session token for authentication. API keys are recommended for most use cases. | |
| amount | Yes | Amount to withdraw from Earn (as string for decimal precision) | |
| symbol | Yes | Cryptocurrency symbol (e.g., BTC, ETH) | |
| confirm | No | Must be true to execute. Ask the user first, then call again with confirm=true. Prevents accidental one-shot mutations by the LLM. | |
| pocket_id | Yes | Destination pocket UUID in Simple Wallet | |
| idempotency_key | No | Stable key for this logical action (UUID recommended). Reuse the same value when retrying after a timeout so Bit2Me does not execute twice. Auto-generated if omitted. |