> ## Documentation Index
> Fetch the complete documentation index at: https://docs.4mica.io/llms.txt
> Use this file to discover all available pages before exploring further.

# 4Mica Developer Docs

> Start here to understand what 4Mica does and how to begin building.

<Frame>
  <img src="https://mintcdn.com/4mica/4VGsKlanVlMSAASY/assets/img/logo.png?fit=max&auto=format&n=4VGsKlanVlMSAASY&q=85&s=952699b0e2b00ceba68b1b497e945a07" alt="Workspace" class="inline-block rounded-lg" width="1254" height="1254" data-path="assets/img/logo.png" />
</Frame>

[4Mica](https://4mica.io) is the clearing house for the agentic economy: a credit layer for x402 that lets agents and applications transact instantly, earn yield on collateral, and settle net positions later.

Instead of forcing every request to become an on-chain transaction, 4Mica lets a payer deposit collateral once, sign off-chain payment guarantees per request, and settle later. Resource servers keep the familiar HTTP 402 flow while gaining programmable credit, non-custodial enforcement, and batched settlement.

## Who 4Mica Is For

* **API providers** that want to charge per request without accounts, invoices, or prepaid balances.
* **AI agents** that need to pay many services during a task and settle once later.
* **Applications** that want x402-compatible payments with credit, collateral, and net settlement.
* **Protocol teams** building financial infrastructure for high-frequency agent-to-agent commerce.

## The basic story

<Steps>
  <Step title="Deposit Collateral">
    A payer deposits ETH or a supported <Tooltip headline="ERC-20" tip="Ethereum's standard interface for fungible tokens. It defines common functions for balances, transfers, approvals, and allowances so wallets and applications can interact with tokens consistently.">ERC-20</Tooltip> into the Core4Mica vault.
  </Step>

  <Step title="Protect a Route">
    A seller protects an HTTP route with x402 payment requirements and
    publishes the price, asset, network, and recipient address.
  </Step>

  <Step title="Sign a Guarantee">
    The buyer receives HTTP 402, creates a unique request ID, signs a guarantee,
    and retries the request.
  </Step>

  <Step title="Settle the Payment">
    The seller verifies and settles the payment through the facilitator, then
    serves the protected response.
  </Step>

  <Step title="Clear and Settle">
    Payable guarantees enter a clearing cycle. Net debtors settle their
    positions, and locked collateral covers defaults according to protocol rules.
  </Step>
</Steps>

## Related Topics

<Columns cols={3}>
  <Card title="Quickstart" icon="rocket" href="/getting-started/quickstart">
    Make your first paid request with 4Mica.
  </Card>

  <Card title="Buyer" icon="wallet" href="/buyer/quick-start">
    Build an agent or client that pays APIs.
  </Card>

  <Card title="Seller" icon="server" href="/seller/quick-start">
    Protect an API, model, dataset, or workflow.
  </Card>
</Columns>
