πCreate an order
Explains how to create an order for the SDK
import { Order, ChainID } from "@shogun-network/intents-sdk";
const order = await Order.create({
user: "0x1234567890123456789012345678901234567890", // Signer wallet address
sourceChainId: ChainID.Arbitrum,
sourceTokenAddress: '0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9', // USDT on Arbitrum
sourceTokenAmount: BigInt(10_000_000), // 10 USDT (6 decimals)
destinationChainId: ChainID.Solana,
destinationTokenAddress: 'Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB', // USDT on Solana
destinationTokenMinAmount: BigInt(9_500_000), // 9.5 USDT minimum
destinationAddress: '3Kiz4oBXpR9YuPNsVfvE5XnNzgwjrM9m2CbRzyyEVkpQ', // Solana wallet
minStablecoinAmount: BigInt(9_800_000), // Protocol minimum
deadline: Math.floor(Date.now() / 1000) + 3600, // 1 hour from now
});Parameter Details
Parameter
Type
Description
Example
Parameter
Type
Description
Last updated