Prepares a transaction to buy or sell tokens. Supports multiple trade types:
Automatically uses RobinSwap or UniswapV3 based on token graduation status.
USD Rewards Attribution:
JWT token or API key
Blockchain identifier. Supported chains: solana-devnet, base, base-sepolia, avalanche, bnb, bnb-testnet, unichain, unichain-testnet, abstract, polygon, zkSync, zkSync-testnet
solana-devnet, base, base-sepolia, avalanche, bnb, bnb-testnet, unichain, unichain-testnet, abstract, polygon, zkSync, zkSync-testnet "base-sepolia"
buy, sell User wallet address (optional - if not provided, will use user's Privy wallet from user_wallets table)
"0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb"
Builder attribution information (optional). Includes address and fee in bps.
Token referral address for attribution (optional - defaults to zero address). Used to attribute referral fees to a specific address.
"0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb"
x > 0x > 0x > 0x > 0