Trading and Earn
Resume a swap, vault or bridge task from Portfolio or MCP
Plan a swap and vault deposit, preserve a gas reserve and resume the unfinished step after a browser close, agent restart or partial bridge delivery.
Workflow
Specify the exact assets and destination
Choose swap → deposit, withdraw → swap or bridge → deposit. Create the task with a persistent requestId. Save data.task.id as taskId with the original workspace. Choose Base or Ethereum and a supported exact vault. For a Base swap of 100 USDC to native ETH, set amount to 100000000, specify the native ETH address as zero, and select a verified WETH vault for the deposit. Supply the minimum ETH output and gas reserve in wei. Bitpont wraps eligible settled ETH before depositing WETH. A USDC vault accepts a different asset.
Review and sign the next step
Read taskStatus and pass data.task.step and data.task.attempt with taskId to taskPrepare. Inspect the resulting execution ticket, sign its exact transaction with the authorized wallet and submit it through executionSubmit. Check allowances and any required wrap separately. A follow-up deposit must fit the settled proceeds, available wallet balance and gas reserve. The balance check reflects the time of preparation or submission. Gas costs and other wallet activity can change the amount available later.
Recover a partly completed task
After a restart, find the original task using taskList in the same workspace. Refresh taskStatus to see the recorded executions and what still needs attention. If the swap settled, check its receipt and the wallet that received the proceeds. If a bridge is waiting for delivery, wait for evidence on the destination chain. Prepare a remaining step only when its checks allow it.
List tasks in the original private workspace
curl -fsS "https://www.bitpont.com/api/v1/agent/tasks/list" \
-H 'Content-Type: application/json' \
-H "X-Bitpont-Workspace: ${BITPONT_WORKSPACE:?Set your original workspace}" \
-d '{"limit":10}'