Bridge Kit

Configure Transfer Speed and Max Cost

By default, Bridge Kit uses a fast transfer speed to optimize for performance. However, this can incur higher fees. If performance isn't a concern, you can specify a slow transfer speed.

To balance performance and cost, you can set a maximum fee to pay on fast transfers. This results in the transfer speed switching to slow if the cost is over your limit.

This code configures a slow transfer speed:

Typescript
// Slow transfer speed
const result = await kit.bridge({
  from: { adapter, chain: "Ethereum" },
  to: { adapter, chain: "Base" },
  amount: "100.0",
  config: { transferSpeed: "SLOW" }, // Slow transfer speed
});

The maximum fee you are willing to pay for the CCTP fast burn.

This code configures a maximum fee of 5 USDC:

Typescript
const result = await kit.bridge({
  from: { adapter, chain: "Ethereum" },
  to: {
    adapter,
    chain: "Base",
  },
  amount: "100.0",
  config: {
    transferSpeed: "FAST", // Fast transfer speed (can be omitted)
    maxFee: "5000000", // Max 5 USDC fee (in smallest units)
  },
});
Did this page help you?
© 2023-2025 Circle Technology Services, LLC. All rights reserved.