Private same-chain payment
A source and destination do not need to differ. USDC on Base to USDC on Base is a supported, first-class route; privacy comes from SilentSwap's routing, not from crossing a chain.
import { parseUsdc, type QuoteRequest, type SilentSwapClient } from '@silentswap/sdk';
declare const client: SilentSwapClient;
const payment: QuoteRequest = {
privacy: true,
inputAddress: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8',
sourceAsset: 'USDC',
sourceChainId: 8453,
outputs: [{
address: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC',
chainId: 8453,
amount: parseUsdc('25'),
}],
};
const quote = await client.quote(payment);
// Render every output, asset, fee, and expiry in trusted UI before this line.
const order = await client.placeOrder(quote);
void order;This direct request has one output and no dest. The payout must be at least 10
USDC. The wallet deposit calldata does not reveal the recipient.
Render all outputs, assets, fees, and expiry in trusted UI before calling
placeOrder.