Key Rules
- Amounts are strings, not numbers
- Decimal precision must match the currency type
- No trailing zeros beyond the required precision
Decimal Precision by Currency
| Currency Type | Decimals | Example |
|---|---|---|
| Fiat (USD, EUR) | 2 | "100.00" |
| USDC | 6 | "100.000000" |
| ETH | 18 | "1.000000000000000000" |
| BTC | 8 | "0.00100000" |
Valid Examples
Invalid Examples
Error Response
If you send an incorrectly formatted amount:Helper Function
ONRAMP vs OFFRAMP
For ONRAMP (fiat → crypto):srcAmountuses fiat precision (2 decimals for USD)
srcAmountuses crypto precision (6 decimals for USDC)
Next Steps
Create an Intent
Use proper amount formatting in your intents.
Requirements
See full field requirements.