For more details about how fees work, fee collection on different chains, and
setting up fee wallets, see the Monetizing the
integration guide.
Global fee configuration
The recommended approach is to configure fees globally when creating your SDK config usingcreateConfig
. This ensures all requests use the same fee configuration automatically:
Per-request fee configuration
Alternatively, you can configure fees on a per-request basis. This is useful when you need different fee rates for different types of transactions or users. Thefee
parameter can be added to the options
object when requesting routes or quotes.