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

# Welcome To PayChainHQ Docs

PayChainHQ helps businesses receive crypto and stablecoin payments, confirm settlement, automate payout routing, create withdrawals, monitor balances, and integrate payment operations through API, SDK, dashboard, and webhooks.

<Info>
  **Start here:** If you are new to PayChainHQ, read [Product overview](overview), then [Getting started journey](getting-started). Developers should continue to [Developer quickstart](developer-quickstart) and [Payment flows](payment-flows).
</Info>

## What PayChainHQ helps you do

* Create customers and invoices.
* Accept supported stablecoin and crypto payments.
* Detect and confirm settlement.
* Verify signed webhooks.
* Route invoice proceeds to one or more recipients.
* Create dashboard or programmatic withdrawals.
* Read balances, transactions, [supported networks and tokens](supported-networks-tokens).
* Track pricing plan usage, payout quota, sponsored gas credits, and top-ups.

## Choose your path

| I want to...                | Start with                                                       |
| --------------------------- | ---------------------------------------------------------------- |
| Understand the product      | [Product overview](overview)                                     |
| Learn the main objects      | [Core concepts and terminology](core-concepts)                   |
| Set up safely               | [Getting started journey](getting-started)                       |
| Integrate the API or SDK    | [Developer quickstart](developer-quickstart)                     |
| Pick the right payment flow | [Payment flows](payment-flows)                                   |
| Use direct HTTP APIs        | [REST API guide](rest-api-guide)                                 |
| Understand pricing and gas  | [Pricing, billing, and gas credits](pricing-billing-gas-credits) |
| Prepare for production      | [Security and go-live](security-go-live)                         |

<Warning>
  **Security note:** API keys belong only in trusted backend systems. Do not expose API keys, payout keys, webhook secrets, or private operational details in browser, mobile, or public client code.
</Warning>

## For developers

Use the TypeScript SDK when possible:

```bash theme={null}
npm install @paychainhq/sdk
```

Then create a backend client:

```ts theme={null}
import { PayChain } from '@paychainhq/sdk';

const paychain = new PayChain({
  apiKey: process.env.PAYCHAIN_API_KEY!,
  businessId: process.env.PAYCHAIN_BUSINESS_ID!,
  environment: 'live'
});
```

<Tip>
  **Best first integration:** Create a fixed amount invoice, verify the webhook with the raw request body, then fetch the canonical invoice before fulfilling the order.
</Tip>
