Build a buy quote
Quotes
Get a quote
Build quotes for fiat->crypto transactions
POST
Build a buy quote
Documentation Index
Fetch the complete documentation index at: https://dev.moonpay.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header using an access token.
Example: Authorization: Bearer <accessToken>
Body
application/json
Source asset in fiat. Amount can be set in source or destination.
Example:
{
"amount": "100.02",
"asset": { "code": "USD" }
}Destination asset in crypto. Amount can be set in destination or source.
Wallet address and optional tag where the crypto will be sent. Required for the quote to be executable.
Example:
{
"address": "0x1234567890123456789012345678901234567890"
}Payment method for the transaction. Required for the quote to be executable.
Response
The request has succeeded.
Quote for a fiat-to-crypto buy. Contains locked rate, fees, expiry, and signature for payment execution.
Example:
{
"source": {
"amount": "100.00",
"asset": { "code": "USD" }
},
"destination": {
"amount": "0.00114",
"asset": { "code": "BTC" }
},
"fees": {
"network": {
"amount": "2.39",
"asset": { "code": "USD" }
},
"moonpay": {
"amount": "4.99",
"asset": { "code": "USD" }
},
"ecosystem": {
"amount": "1.00",
"asset": { "code": "USD" }
}
},
"wallet": {
"address": "0x1234567890123456789012345678901234567890"
},
"paymentMethod": {},
"limits": null,
"expiresAt": "2026-03-27T12:30:00.000Z",
"executable": true,
"exchangeRate": "87523.17",
"paymentDisclosures": [
{
"id": "eea-crypto-asset-risk",
"version": "1"
}
],
"signature": "cXVvdGUuc2lnbmF0dXJl..."
}