referrer address and one referrerBps. When the fee needs to go to more than one wallet, pass a referrers object instead.
Setting it up
Passreferrers as the second argument to fetchQuote, keyed by network type, with a bps share per wallet.
referrerAddresses at swap time.
Rules
- Do not mix the two forms. The SDK throws if
referrerorreferrerBpsis set alongsidereferrers. - 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
GETquote endpoint.
Next steps
Fees & Earning
Protocol fees, relayer fees, and how the referrer fee is collected.
Executing Swaps
Passing
referrerAddresses at swap time.