How it works
A Gateway transfer without the Forwarding Service is a three-step process (assuming funds already deposited):- Create burn intents to burn USDC on the source chain.
- Use the burn intents to request an attestation from the Circle API.
- Submit the attestation to the destination minter contract to mint USDC.
Enabling the Forwarding Service
To enable the Forwarding Service, add theenableForwarder=true query parameter
to the /transfer
endpoint:
true, Gateway will handle the destination chain
minting automatically, eliminating the need for managing destination chain
wallets or gas fees.
Fees and execution
The Forwarding Fee includes two parts:- Forwarding Service fee
- Forwarding Gas Fee
| Destination chain | Service fee (USDC) |
|---|---|
| Ethereum | $1.25 |
| All other chains | $0.20 |
Solana is currently not supported for forwarding when specified as the
destination chain.
- Gas fee: $0.01
- forwarding fee: $0.21 (forwarding service and gas fee)
- Transfer fee: 1,000 * 0.00005 = $0.05
- Minimum
maxFee: $0.27 (270,000 in USDC subunits)
Estimate fowarding fee
The/estimation endpoint can
be utilized by passing in the query parameter enableForwarder=true
forwardingFee includes the forwarding service and gas fees. If
the maxFee specified in the first burn intent is not enough to satisfy the
forwarding fee, the estimate endpoint will automatically bump up the max fee.
Fee collection
Similar to the gas fee and transfer fee, forwarding fees will also be collected when funds are burned on the source chain. The forwarding fee collection process works as follows:- The forwarding fee is deducted from the
maxFeeof the burn intents in the order they were passed to the transfer endpoint. - The system will take up to the
maxFeeamount from the first burn intent to satisfy the forwarding fee.
- Burn intent 1:
maxFee= $0.30- Gas and transfer fees: $0.08
- Available for forwarding: $0.22
- Burn intent 2:
maxFee= $0.15- Gas and transfer fees: $0.05
- Available for forwarding: $0.10
- Burn intent 3:
maxFee= $0.25- Gas and transfer fees: $0.06
- Available for forwarding: $0.19
- $0.22 is collected from burn intent 1’s available
maxFeeafter gas and transfer fees - $0.03 is collected from burn intent 2’s available
maxFeeto satisfy the remaining forwarding fee, totaling $0.25 - No forwarding fee is collected from burn intent 3 since the full forwarding fee has already been satisfied
maxFee must first cover the gas and transfer fees
before any remaining amount can be applied to the forwarding fee.