# How It Works

The ramp system follows a straightforward request-response model. Unlike the vault layer, which uses an asynchronous request-settle-claim cycle, ramp operations are typically single-call.&#x20;

You ask for bank instructions, you get bank instructions. You request a quote, you get a quote. You submit a withdrawal, it enters the settlement pipeline.

{% stepper %}
{% step %}

#### **Authenticate**

The `MceRampClient` is initialized with your MCE client ID and secret. Every outbound request is signed against these credentials. The base URL determines which environment you hit (production vs. sandbox).
{% endstep %}

{% step %}

#### **Request**

Your backend calls the appropriate ramp method. For on-ramps, this means fetching deposit instructions or wallet addresses. For off-ramps, this means submitting a withdrawal with full beneficiary details.
{% endstep %}

{% step %}

#### **Settle**

MCE processes the operation on its regulated settlement layer. Fiat deposits land after the bank transfer clears. Crypto deposits confirm after on-chain finality. Withdrawals enter MCE's outbound payment queue.
{% endstep %}

{% step %}

#### **Reconcile**

Your system uses the `clientReference` field (on withdrawals) or participant-level account data to match settled transactions back to your internal records.
{% endstep %}
{% endstepper %}


---

# Agent Instructions: 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:

```
GET https://city-protocol.gitbook.io/docs/neofinance-as-a-service/on-off-ramp-module/how-it-works.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
