Skip to main content
A standard integration sets one referrer address and one referrerBps. When the fee needs to go to more than one wallet, pass a referrers object instead.

Setting it up

Pass referrers as the second argument to fetchQuote, keyed by network type, with a bps share per wallet.
Pass the same object as referrerAddresses at swap time.

Rules

  • Do not mix the two forms. The SDK throws if referrer or referrerBps is set alongside referrers.
  • The objects have to match. The SDK throws at swap time if the object you pass differs from the one the quote was fetched with.
  • POST flow only. Multi-wallet referrers are not available on the GET quote endpoint.

Next steps

Fees & Earning

Protocol fees, relayer fees, and how the referrer fee is collected.

Executing Swaps

Passing referrerAddresses at swap time.