> 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/api-reference/simulation.md).

# Simulation

## Simulate Rail Deposit

> Simulates a deposit on a configured Rail to test the end-to-end flow.\
> \
> For on-ramps (fiat to stablecoin), this mimics a GBP deposit into the user's\
> Agant bank account, triggering GBPA minting into the configured wallet.\
> \
> For off-ramps (stablecoin to fiat), this mimics a GBPA deposit to the custody wallet,\
> triggering a token burn and GBP payout to the user's configured bank account.\
> \
> Automatically detects the Rail direction and processes the appropriate flow.\
> \
> This is intended for sandbox testing only:\
> \- Uses devnet tokens and simulated fiat\
> \- No real funds are moved\
> \- Simulated transactions are recorded and visible via the Transactions API\
> \- Limited to 10 requests per minute

```json
{"openapi":"3.1.0","info":{"title":"Agant API Docs","version":"0.0.2"},"servers":[{"url":"https://sandbox.agant.io/api/v1","description":"Sandbox"}],"security":[{"http":[]}],"components":{"securitySchemes":{"http":{"type":"http","scheme":"bearer"}},"schemas":{"SimulateRailRequestData":{"type":"object","properties":{"rail_id":{"type":"string"},"amount":{"type":"number","minimum":1,"maximum":100000}},"required":["rail_id","amount"],"title":"SimulateRailRequestData"}},"responses":{"AuthenticationException":{"description":"Unauthenticated","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}}}},"paths":{"/simulator/rail":{"post":{"operationId":"simulation.simulateRail","description":"Simulates a deposit on a configured Rail to test the end-to-end flow.\n\nFor on-ramps (fiat to stablecoin), this mimics a GBP deposit into the user's\nAgant bank account, triggering GBPA minting into the configured wallet.\n\nFor off-ramps (stablecoin to fiat), this mimics a GBPA deposit to the custody wallet,\ntriggering a token burn and GBP payout to the user's configured bank account.\n\nAutomatically detects the Rail direction and processes the appropriate flow.\n\nThis is intended for sandbox testing only:\n- Uses devnet tokens and simulated fiat\n- No real funds are moved\n- Simulated transactions are recorded and visible via the Transactions API\n- Limited to 10 requests per minute","summary":"Simulate Rail Deposit","tags":["Simulation"],"requestBody":{"description":"`SimulateRailRequestData`","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimulateRailRequestData"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"tx_id":{"type":"string"}},"required":["tx_id"]}}}},"401":{"$ref":"#/components/responses/AuthenticationException"},"422":{"description":"An error","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}}}}}}}
```


---

# 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/api-reference/simulation.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.
