Walkthrough for integrating Sail Exchange Rust Client
Prerequisite You should have installed Rust (version 1.7 or higher).
In this section we’ll be going over how you can quickly get started with Sail Rust Client, from initializing Sail, to creating your first order.
The Rust Client is the fastest and most secure way to interact with the exchange.
use sail_exchange::{Sail, LimitOrder}; use fuels::{accounts::fuel_crypto::SecretKey, prelude::*}; let testnet_provider = Provider::connect("beta-3.fuel.network").await.unwrap(); // Create the wallet. let trading_wallet = WalletUnlocked::new_from_private_key(ENV_PRIVATE_KEY, Some(provider)); //Build Sail let sail = Sail::builder .provider(testnet_provider) .wallet(trading_wallet) .build();