create_off_ramp_quote
Creates an off-ramp quote to convert crypto to fiat, returning fulfillment instructions for sending tokens or signing a transaction.
Instructions
Create an off-ramp quote to convert crypto to fiat. Requires accountId, amount, chain, and tokenAddress (the on-chain contract address, e.g. 0xaf88d065e77c8cC2239327C5EDb3A432268e5831 for USDC on Arbitrum). Do NOT pass a token symbol — it must be the contract address.
After creating a quote, check the fulfillment field:
send_to_address: Send the exactinput.amountofinput.tokento thesendTo.addressbeforesendTo.expiresAt.sign_transaction: Callget_off_ramp_transactionwith the quote ID and sender address to get calldata or a serialized transaction, then sign and submit on-chain.
Amount modes: set amountMode to output (default) for exact fiat delivery, or input for exact crypto spend.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"accountId": "<accountId>",
"amount": "<amount>",
"chain": "<chain>"
},
"name": "create_off_ramp_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memo | No | Payment note (bank account payments only) | |
| rail | No | ||
| chain | Yes | ||
| amount | Yes | Amount as a decimal string (interpretation depends on amountMode) | |
| accountId | Yes | Destination account ID | |
| amountMode | No | ||
| tokenAddress | No | Token contract address. Highly recommended for EVM chains — different tokens have different fee tiers (e.g. USDC is cheapest). If omitted, the chain's native token is assumed. Not needed for Bitcoin. |