Skip to main content

Introduction

Move the approved crypto amount from a Swig wallet to the provider’s deposit for an existing sell order. The order must be awaiting-transfer and include deposit details. Use this flow after sell checkout, including recovery of a submitted attempt after an uncertain response. The examples use the same mainnet client, saved sell order, and configured requester authority. Application callbacks own signing and durable storage.

SDK examples

Prepare and submit the sell transfer

Review the provider’s current deposit against the approved order. signTransaction and saveTransferAttempt (snake_case in Python/Rust) are application-owned callbacks for signing and durable storage.
Preparation returns transaction bytes once. Save the order ID, transfer ID, and exact signed bytes before submission. The Rust signing callback returns a native VersionedTransaction.

Resolve a submitted transfer

For an attempt already in submitted, resolve the same transfer without signing or paying again.

Flow

Input

TypeScript names are shown; Python uses snake_case. Preparation and transfer submission are not retried automatically; Rust quotes also send once. Only prepare a replacement after the previous attempt is failed or expired and the order is still eligible. An uncertain response alone is insufficient.

Output

Errors