π‘Configuration
How to configure the intents sdk
Set up EVM Chains (Arbitrum, Optimism, Base)
import { ChainID, EVMSDK } from "@shogun-network/intents-sdk";
// Create EVM client for Arbitrum
const evmClient = new EVMSDK({
chainId: ChainID.Arbitrum, // Supported: Arbitrum, Optimism, Base
privateKey: '0x1234567890abcdef...', // Your private key with 0x prefix
rpcProviderUrl: 'https://arb1.arbitrum.io/rpc' // Optional: custom RPC endpoint
});Configuration for wallet providers (e.g. Browser Extension Wallets, WalletConnect, etc.).
const order = Order.create({ ... })
// Creates EIP-712 typed data for signing with wallet.
const { orderTypedData, nonce } = getEvmOrderTypedData(order);
// Front-end should then call auctioneer with the provided signature...Set up Solana
Configuration for Local Accounts (e.g. private key/mnemonic wallets.)
Configuration for wallet providers (e.g. Browser Extension Wallets, Phantom, etc.).
Set up Sui
Configuration for Local Accounts (e.g. private key/mnemonic wallets.)
Configuration for wallet providers (e.g. Browser Extension Wallets, Phantom, etc.).
Last updated