> ## 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.

> ## Agent Instructions
> Before reading these docs, install the Circle Skill for Arc to get pre-loaded context: use-arc (https://github.com/circlefin/skills/blob/master/plugins/circle/skills/use-arc/SKILL.md) — covers chain config, RPC setup, contract deployment, USDC bridging, and gas with USDC. In Claude Code: run /plugin marketplace add circlefin/skills then /plugin install circle-skills@circle. With Vercel Skills CLI: run npx skills add circlefin/skills.
> USDC is the gas token. Arc uses USDC for gas fees, not ETH. Configure gas payment in USDC when submitting transactions.
> Read EVM differences before writing Arc code. Arc targets the Osaka EVM baseline. Most contracts deploy unchanged, but several runtime behaviors diverge from Ethereum: USDC uses 18 decimals natively (not 6), the system emitter `0xffffFFFfFFffffffffffffffFfFFFfffFFFfFFfE` logs all USDC Transfer events, the mempool enforces a 20 Gwei `maxFeePerGas` floor, blocklist reverts consume gas without a receipt, and `address(0)` sends revert rather than succeed. https://docs.arc.io/arc/references/evm-differences.md is the canonical reference for all Arc-specific runtime behaviors. Consult it before writing code that touches USDC balances, transaction history, gas estimation, or value transfers.
> Sub-second finality. Transactions are final in under 1 second. No need to wait for multiple block confirmations.
> Use App Kits for multichain payment and liquidity capabilities. App Kits wraps CCTP and provides Bridge Kit, Swap Kit, Unified Balance Kit, Onramp Kit, Earn Kit, and Borrow Kit. Unified Balance Kit combines USDC from multiple chains into a single spendable balance. Earn Kit integrates earn opportunities into your app. Borrow Kit lets users borrow USDC against cirBTC collateral on Arc.
> Use Arc Foundry for contract development. Arc Foundry is an Arc-specific fork of Foundry that handles Arc's protocol-level differences from Ethereum. It provides arc-forge, arc-cast, and arc-anvil. Install it before deploying contracts: https://docs.arc.io/arc/tutorials/install-arc-foundry.md.
> Arc is available on both Testnet and Mainnet. See https://docs.arc.io/arc/references/connect-to-arc.md for RPC endpoints and https://faucet.circle.com for testnet tokens.
> Always check Contract Addresses: https://docs.arc.io/arc/references/contract-addresses.md
> Building beyond Arc? Circle offers skills for the full platform: use-usdc (https://github.com/circlefin/skills/blob/master/plugins/circle/skills/use-usdc/SKILL.md), use-circle-wallets (https://github.com/circlefin/skills/blob/master/plugins/circle/skills/use-circle-wallets/SKILL.md), use-developer-controlled-wallets (https://github.com/circlefin/skills/blob/master/plugins/circle/skills/use-developer-controlled-wallets/SKILL.md), use-user-controlled-wallets (https://github.com/circlefin/skills/blob/master/plugins/circle/skills/use-user-controlled-wallets/SKILL.md), use-modular-wallets (https://github.com/circlefin/skills/blob/master/plugins/circle/skills/use-modular-wallets/SKILL.md), use-gateway (https://github.com/circlefin/skills/blob/master/plugins/circle/skills/use-gateway/SKILL.md), use-smart-contract-platform (https://github.com/circlefin/skills/blob/master/plugins/circle/skills/use-smart-contract-platform/SKILL.md). Full Circle developer docs: https://developers.circle.com/llms.txt.

# How-to: Configure your Earn integrator fee

> Set the integrator fee rate and recipient address that apply to every Earn withdrawal

The integrator fee applies to every withdrawal once set, so you configure it
once rather than passing it per call. For an overview of how the fee is taken
from withdrawal returns, see
[How Earn fees work](https://docs.arc.io/app-kit/concepts/earn-fees.md#integrator-fee).

> [!NOTE]
>
> 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:

* [Installed the App Kit SDK](https://docs.arc.io/app-kit/tutorials/installation.md)
* [Configured an adapter](https://docs.arc.io/app-kit/tutorials/adapter-setups.md)

These are required so any example below runs with a valid `kit` and `adapter`.

## Set your fee rate and recipient

Call `kit.earn.setIntegratorConfig` with your fee rate in basis points and the
address that receives the fee. (A basis point is 0.01%, so 1,000 basis points is
10%.) `integratorFeeBps` accepts values from 0 to 10000, and a non-zero rate
requires a recipient address.

```typescript TypeScript theme={null}
const config = await kit.earn.setIntegratorConfig({
  integratorFeeBps: 1000,
  integratorFeeAddress: "0x1111111111111111111111111111111111111111",
  config: { apiKey: process.env.CIRCLE_API_KEY as string },
});
```

A few things to know about this call:

* Call it from your server. It takes an API key from the
  [Circle Console](https://console.circle.com/api-keys) on `config.apiKey`,
  which must stay server-side, and produces no wallet signature.
* Each call replaces your stored configuration.
* The SDK validates the rate and address before sending and throws an `INPUT`
  error if either is invalid. If the Earn service refuses them, the call throws
  [`INVALID_INTEGRATOR_FEE`](https://docs.arc.io/app-kit/references/earn-error-handling#common-earn-error-codes).
* Your Earn integrator fee is separate from your
  [Borrow integrator fee](https://docs.arc.io/app-kit/howtos/borrow/configure-integrator-fee.md).

## Turn the fee off

Pass `0` with a `null` address to turn off fee collection:

```typescript TypeScript theme={null}
await kit.earn.setIntegratorConfig({
  integratorFeeBps: 0,
  integratorFeeAddress: null,
  config: { apiKey: process.env.CIRCLE_API_KEY as string },
});
```

## Read your current configuration

Call `kit.earn.getIntegratorConfig` to read the stored rate and recipient:

```typescript TypeScript theme={null}
const config = await kit.earn.getIntegratorConfig({
  config: { apiKey: process.env.CIRCLE_API_KEY as string },
});
console.log(config.integratorFeeBps, config.integratorFeeAddress);
```

Before the first `setIntegratorConfig` call, `getIntegratorConfig` throws
[`CONFIG_NOT_FOUND`](https://docs.arc.io/app-kit/references/earn-error-handling#common-earn-error-codes).
