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 validkit and adapter.
Set your fee rate and recipient
Callkit.borrow.setIntegratorConfig with your fee in basis points and the
address that receives the fee. This call requires an API key from the
Circle Console, passed as apiKey on the
operation config. Keep the API key server-side. It produces no wallet signature.
TypeScript
integratorFeeBps accepts values from 0 to 10000.
Turn the fee off
Pass0 with a null address to turn off fee collection:
TypeScript
Read your current configuration
Callkit.borrow.getIntegratorConfig to read the stored rate and recipient:
TypeScript
setIntegratorConfig call, getIntegratorConfig throws
CONFIG_NOT_FOUND.