Skip to main content
Paste this prompt into your coding agent to build the Brazil corridor as working code, not as a currency pair on a page. The agent onboards a customer with a BRL account, chooses between a standing rule and a per-deposit on-ramp, quotes the conversion, and closes the loop with a payout.

Before you start

Prompt

Prompt

How to use

  1. Decide standing rule versus per-deposit transaction before running this, or check the agent’s reason in step 2. It is the one choice that changes the whole product.
  2. Pick the chain with whoever holds the treasury; fees and finality differ and the code should not decide it.
  3. Test with a sandbox amount above the minimum, or the conversion never starts and the failure looks like a bug.

What the prompt builds

Errors to expect

These codes come from the errors catalog, for the resources this prompt uses. Match on code, not on message.

Coverage

Supported currencies, rails, and stablecoin pairs.

Autoconversion rules

Convert every deposit with a standing rule.

Integrate on-ramps from fiat to stablecoin

Take fiat in and deliver stablecoin to the customer’s wallet.

Integrate autoconversion rules

Convert every deposit to stablecoin with a standing rule.