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

# Off Ramp

## Overview

Agant enables your business to off-ramp supported stablecoins into fiat currency - automatically and securely using Agant [Rails](/Y83ivqmfOiUspagNyFg6/concepts/rails.md).

When you configure an Off Ramp Rail, Agant assigns your company a unique wallet address to which you send your stablecoins. Once the tokens are received, Agant instantly converts them to fiat and delivers the funds to your [whitelisted bank account](/Y83ivqmfOiUspagNyFg6/concepts/whitelisting.md#bank-account-whitelisting).

#### Examples

* **Rail 1:** Converts GBPA on Solana into GBP and sends it to Bank Account A
* **Rail 2:** Converts GBPA on Ethereum into GBP and sends it to Bank Account B
* **Rail 3:** *(Coming soon)* Converts USDC on Solana into GBP and sends it to Bank Account A

#### Example Flow

1. **Example Co.** configures a new Rail to convert GBPA on Solana into GBP, sent to their whitelisted bank account.
2. **Example Co.** sends 1,000 GBPA to the Rail’s wallet address on Solana.
3. Agant monitors the wallet; as soon as tokens arrive, 1,000 GBPA is burned and 1,000 GBP is sent to the configured bank account.
4. The Rail remains active, **Example Co.** can continue sending GBPA to the same wallet address, and GBP will be delivered automatically.

***

## Implementation

### Step 1: Whitelist a destination bank account

Before you can convert your stablecoins back into fiat currency, you will need to whitelist your destination bank account using the [Broken mention](broken://pages/0134c9d751c1c1e00a639f2dadfe966be6e9575c#post-bank-accounts) API.

```bash
curl --request POST \
     --url https://sandbox.agant.io/api/v1/bank-accounts \
     --header "Authorization: Bearer <api-token>" \
     --header 'Content-Type: application/json' \
     --data '{
       "iban": "GB29NWBK60161331926819",
       "name": "NatWest Account EX7MP1E"
     }'

```

### Step 2: Create an Off Ramp Rail

Use the [Broken mention](broken://pages/18ab52ef8e3cbc0200e9864cad22e407ad402a26#post-rails) API to define the stablecoin type and source network, and link it to your whitelisted bank account.

Agant will then provision a dedicated wallet on that network and share the address with you. Any tokens sent to this wallet are automatically converted and settled to your bank account

```bash
curl --request POST \
     --url https://sandbox.agant.io/api/v1/rails \
     --header "Authorization: Bearer <api-token>" \
     --header 'Content-Type: application/json' \
     --data '{
        "type": "OFF_RAMP",
        "source": {
          "asset": "GBPA",
          "network_id": "SOLANA_DEVNET"
        },
        "destination": {
          "asset": "GBP",
          "bank_account_id": "bka_9l2RDzSXAEpP"
        },
        "metadata": []
      }'
```

### Step 3: Send stablecoins to the Rail source Wallet

Transfer the stablecoins (e.g. GBPA on Solana) to the provided rail wallet address. Agant monitors the wallet and processes a bank transfer to your configured account upon settlement.


---

# 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.agant.io/Y83ivqmfOiUspagNyFg6/platform/off-ramp.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.
