App Kit lets you collect a custom fee from your end users on each bridge
transfer. For how custom fees fit into the overall fees breakdown, see
How Bridge Fees Work.
If you use this feature, Arc keeps 10% of the custom fee you collect from your
end users.
Prerequisites
Before you begin, ensure that you’ve:
These are required so any example below runs with a valid kit and adapter.
Set a custom fee on a bridge
This example adds a 0.10 USDC fee to a single bridge transfer:
// Bridge 1.00 USDC from Ethereum to Arc
const result = await kit.bridge({
from: { adapter, chain: "Ethereum_Sepolia" },
to: { adapter, chain: "Arc_Testnet" },
amount: "1.00",
// Collect a fee of 0.10 USDC on this bridge transfer
config: {
customFee: {
value: "0.10",
recipientAddress: "YOUR_WALLET_ADDRESS",
},
},
});