> For the complete documentation index, see [llms.txt](https://docs.cashramp.co/cashramp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cashramp.co/cashramp/onchain-ramp/overview.md).

# Overview

**Onchain Ramp** enables direct stablecoin transactions between wallets and local African currencies. Perfect for DApps and Web3 applications that need seamless fiat on/off ramps.

## Features

* **Multi-Chain Support**: CELO, Optimism, Base, and more
* **Low Network Fees**: Starting from $0.01 per transaction
* **Wallet Integration**: Native support for MetaMask and others
* **Custom Flow Support**: Build your own wallet experience
* **Multiple Stablecoins**: USDC, CUSD, USDT support
* **Instant Processing**: Fast settlement times

## Integration Steps

1. **Build URL**

   ```javascript
   const params = new URLSearchParams({
     key: "CSHRMP-PUBK_xxx",
     paymentType: "deposit",
     coin: "USDC",
     network: "CELO",
     amount: "100",
     redirectUrl: "https://your-app.com/callback",
   });

   const url = `https://useaccrue.com/hosted/ramp?${params}`;
   ```
2. **Handle Wallet**

   ```javascript
   // Option 1 (Default)
   window.ethereum;

   // Option 2: Custom wallet flow
   window.addEventListener("message", (event) => {
     if (
       event.origin === "https://useaccrue.com" &&
       event.data.type === "crypto.requested"
     ) {
       const { amountUsd, destination } = event.data.payload;
       // Trigger your wallet flow
     }
   });
   ```
3. **Confirm Transaction**

   ```graphql
   mutation {
     confirmTransaction(
       paymentRequest: "request_id"
       transactionHash: "0x123..."
     )
   }
   ```

## Common Use Cases

| Industry             | Implementation            |
| -------------------- | ------------------------- |
| **DApps**            | Native wallet integration |
| **DEX**              | Fiat on/off ramps         |
| **NFT Marketplaces** | Direct purchases          |
| **Web3 Games**       | In-game transactions      |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.cashramp.co/cashramp/onchain-ramp/overview.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
