Skip to content

Split payouts

Put 1–20 entries in outputs. Each amount is the USDC payout in base units. The user funds the sum of payouts plus service and integrator fees.

import type { QuoteRequest } from '@silentswap/sdk';
 
const split: QuoteRequest = {
  privacy: true,
  inputAddress: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8',
  sourceAsset: 'USDC',
  sourceChainId: 56,
  outputs: [
    {
      address: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC',
      chainId: 8453,
      amount: 40_000_000n,
    },
    {
      address: '0x90F79bf6EB2c4f870365E785982E1f101E93b906',
      chainId: 56,
      amount: 60_000_000n,
    },
  ],
};
 
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.