For the complete documentation index, see llms.txt. This page is also available as markdown.

Fee Sponsorship

By default, Smart Routing Address deducts usage fees from the user's transferred tokens. However, as a developer, you can sponsor these fees so your users receive the full amount they deposit.

Example: When a user deposits 10 USDC to their smart routing address, they will receive exactly 10 USDC on the destination chain, while your dapp pays the usage fees separately.

To set up fee sponsorship, you must perform two steps:

  1. Configure SDK with Project ID: Pass your ZeroDev project ID as projectId when creating a smart routing address.
  2. Select Tokens in Dashboard: Go to the Smart Routing Address Dashboard and select the tokens you wish to sponsor for your project.
import {
  createSmartRoutingAddress,
  SMART_ROUTING_ADDRESS_V1_0_0,
} from "@zerodev/smart-routing-address";

const { smartRoutingAddress, estimatedFees } = await createSmartRoutingAddress({
  owner,
  projectId: ZERODEV_PROJECT_ID,
  destChain,
  recipient: owner,
  srcTokens,
  slippage,
  version: SMART_ROUTING_ADDRESS_V1_0_0,
});

Only tokens that are both created with your projectId in the code and selected in the dashboard will be sponsored. For these tokens, usage fees are charged to your ZeroDev account, ensuring users receive the full deposit amount.

Notes

  • Smart Routing Address integrates with bridges under the hood, so the usage pricing is on top of the underlying bridge fees.
  • Pricing can be negotiated. Feel free to reach out.

On this page