Operations and recovery

Recover unfinished financial tasks after an agent restart

Find outstanding tasks in the original workspace, refresh an individual task and resume a remaining step without repeating a settled transfer.

Workflow

  1. Restore the workspace

    Load the original private workspace secret from your application’s secret store. Use taskOverview for a summary of saved tasks. Filter by network or workflow kind when reviewing a larger queue. A newly created workspace has its own task history.

  2. Choose a task from its history

    Use taskInbox to page through saved tasks with the same filters. Match the task ID, network and workflow to the original request and open taskStatus with its ID. This refreshes the task’s execution and delivery evidence. For a bridge followed by a deposit, wait until the destination proceeds can be verified.

  3. Continue the remaining step

    Read the current step and attempt from the refreshed task. If a new preparation is available, pass them to taskPrepare and review the resulting ticket. If a transaction has already been submitted, keep its ID and check its status before taking any other action. Portfolio Activity can open the same task when supplied with the same workspace.

Find saved swap-to-deposit tasks on Base

curl -fsS "https://www.bitpont.com/api/v1/agent/tasks/inbox" \
  -H 'Content-Type: application/json' \
  -H "X-Bitpont-Workspace: ${BITPONT_WORKSPACE:?Set your original workspace}" \
  -d '{"kind":"swap-deposit","network":"base","limit":10}'

Tools in this guide

Open tool explorer

Related links