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

# Introduction

> Self-hostable, non-custodial crypto payment gateway

My Crypto Server is a source-available payment gateway (commercial license) that lets you accept cryptocurrency payments on your own server. You get the full source code and self-host it — and you keep full custody of funds: every payment goes directly to a wallet address you control, with no intermediary holding your money.

## What it does

* **Accept crypto payments** — customers pay at a hosted checkout page. You get notified instantly via webhooks.
* **Automatic sweeps** — detected payments are swept to your configured payout wallet after the required confirmations.
* **Non-custodial** — funds flow directly on-chain. No escrow, no custodian.
* **REST API** — build integrations, create checkout sessions programmatically, and manage payment links via the v1 API.

## Supported chains

| Chain     | Networks                               |
| --------- | -------------------------------------- |
| Ethereum  | Mainnet (1), Sepolia (11155111)        |
| Base      | Mainnet (8453), Sepolia (84532)        |
| Arbitrum  | One (42161), Sepolia (421614)          |
| Optimism  | Mainnet (10), Sepolia (11155420)       |
| Polygon   | Mainnet (137), Amoy (80002)            |
| Linea     | Mainnet (59144), Sepolia (59141)       |
| Mantle    | Mainnet (5000), Sepolia (5003)         |
| BNB Chain | Mainnet (56), Testnet (97)             |
| Avalanche | Mainnet (43114), Fuji (43113)          |
| Solana    | Mainnet (101), Devnet (103)            |
| Tron      | Mainnet (728126428), Nile (2494104990) |
| Bitcoin   | Mainnet (8333), Signet (38333)         |
| Litecoin  | Mainnet (9333), Testnet (19335)        |
| Dogecoin  | Mainnet (22556), Testnet (44556)       |

Stablecoins (USDC / USDT / DAI) are supported on every chain that has them — see the chain picker at checkout for the exact per-chain list.

## How payments work

```
create session → detect transfer → verify finality → mark paid → sweep → payout
   (address)       (webhook/poll)    (confirmations)   (status)   (drain)  (merchant wallet)
```

1. A checkout session is created — a unique deposit address is derived from your seed.
2. The customer sends funds to that address.
3. Alchemy detects the transfer and notifies your server via webhook (Litecoin and Dogecoin use poll-based detection via an Esplora-compatible API instead).
4. After the required number of confirmations, the session is marked `paid`.
5. Funds are swept from the deposit address to your payout wallet.
6. Your webhook endpoint receives a `session.paid` event.

For a detailed breakdown, see [How It Works → Payment Lifecycle](/concepts/payment-lifecycle).

## Get started

<CardGroup cols={2}>
  <Card title="Authentication" icon="key" href="/api/authentication">
    Get an API key and understand scopes
  </Card>

  <Card title="API Reference" icon="code" href="/api/reference/payment-links">
    Full reference for all v1 endpoints
  </Card>

  <Card title="Webhooks" icon="webhook" href="/api/webhooks">
    Receive real-time payment notifications
  </Card>

  <Card title="Self-Hosting" icon="server" href="/self-hosting/overview">
    Deploy My Crypto Server on your own server
  </Card>
</CardGroup>
