Skip to main content

Introduction

Sell wallet crypto for fiat through provider checkout. Quote the amount, let the customer select a route, and create a sell order with a persisted request ID. After checkout supplies a deposit, continue with Sell transfer. Use Client setup and the provider configuration. Sandbox is a provider environment, not a Solana devnet setting; sell transfers use mainnet even in sandbox.

SDK examples

Quote and create a sell

Use a separate saved request ID for a sell. After quote selection, create checkout and let the customer complete its required steps.

Get the order status

Refresh an order to track checkout, processing, settlement, or refund. A sell must reach awaiting-transfer and have deposit details before preparation.

Flow

Input

Rust uses the configured Ramp client with Network::Mainnet. context and selected_route are the approved customer context and sell quote route.

Output

Errors