Skip to content

Split payouts

Put 1–20 entries in outputs. Each amount is a payout in gateway-chain USDC units, built with parseUsdc. The user funds the sum of payouts plus service and integrator fees.

import { parseUsdc, type QuoteRequest } from '@silentswap/sdk';
 
const split: QuoteRequest = {
  privacy: true,
  inputAddress: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8',
  sourceAsset: 'USDC',
  sourceChainId: 56,
  outputs: [
    {
      address: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC',
      chainId: 8453,
      amount: parseUsdc('40'),
    },
    {
      address: '0x90F79bf6EB2c4f870365E785982E1f101E93b906',
      chainId: 56,
      amount: parseUsdc('60'),
    },
  ],
};
 
void split;

Render the requested outputs alongside quote.recipients[] during review and state.recipients[] during tracking. Do not rely on the deprecated top-level recipient, payoutAmount, or recipientTxHash mirrors.

A split cannot currently include an arbitrary-asset dest. Request separate orders if recipients need different output assets.