Using the SDK
npm install @crosterix/sdkimport { Crosterix } from "@crosterix/sdk";
const crosterix = new Crosterix();const swap = await crosterix.privateSwap({
fromToken: "0xC02aa...", // WETH
toToken: "0xA0b86...", // USDC
amount: "1000000000000000000", // 1 ETH
chainId: 1, // Ethereum Mainnet
stealthMode: true, // Enable privacy
});
console.log("Transaction sent:", swap.txHash);const stealth = await crosterix.generateStealthAddress({
recipientPubKey: "0x04bfc5...",
});
console.log("New Stealth Address:", stealth.address);Last updated
