App Kit can provide an estimate of the fees you’ll incur before spending from a Unified Balance.Documentation Index
Fetch the complete documentation index at: https://docs.arc.io/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, ensure that you’ve: These are required so any example below runs with a validkit and adapter.
Estimate fees before spending
This sample estimates then spends 1.00 USDC from Base Sepolia to Arc Testnet when you specify explicit amounts from a source blockchain:For automatic routing (no explicit
allocations), see
Select source blockchains.TypeScript
Estimated fees may differ from actual fees due to network conditions at
execution time. Review the estimate before proceeding.
Example fee response
The JSON below shows the shape of the fees array.JSON
type values can include:
provider— Protocol transfer fee when the spend is crosschain. Not charged for same-chain spends.gasFee— Onchain gas paid on source blockchains as part of the spend.kit— Developer custom fee from your custom fee policy.forwarder— Forwarding Service fee when the spend uses the forwarder (not shown in the sample above).