Walkthrough for integrating Sail Exchange Typescript Client
Prerequisite You should have installed Node.js (version 18.10.0 or higher).
In this section we’ll be going over how you can quickly get started with Sail Typescript Client, from initializing Sail, to creating your first order.
The typescript SDK provides security and allows fo reasy integration with frontends.
import { Wallet, Provider } from 'fuels';import { sail, LimitOrder } from 'sail-exchange';// create a provider and walletconst testnetProvider = new Provider('https://beta-3.fuel.network');const tradingWallet = Wallet.fromPrivateKey(ENV_PRIVATE_KEY);const sail = new Sail(testnetProvider, tradingWallet);