Execute Swap quote
Executes a given swap quote. Refer to our Recipes section for more detailed examples.
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
Headers
A valid customer authentication token in the format 'Bearer [auth token]'.
Body
Response
Successful response — Swap Transaction
Details about the cryptocurrency the customer wants to swap.
Details about the cryptocurrency the customer will receive.
A positive string number representing how much crypto the user wants to swap.
"1.123"
A positive string number representing the amount of cryptocurrency the customer will receive. Set when the swap is executed.
"0.0056"
A positive number string representing your extra fee for the transaction. It is added to baseCurrencyAmount, feeAmount and networkFeeAmount when the swap is executed.
"0.0000005"
A positive number string representing the network fee for the transaction. It is added to baseCurrencyAmount, feeAmount and extraFeeAmount when the swap is executed.
"0.00039"
A positive number representing the fee for the transaction.
"0.0002"
A valid Swap transaction ID.
"3ea41bef-cfd7-445c-91cc-853f417d4f1e"
The transaction's status. Possible values are completed, failed, waitingForDepositAddressGeneration, waitingForDeposit, executingSwap, reQuoteRequired, screeningWalletAddress, frozen.
completed, failed, waitingForDepositAddressGeneration, waitingForDeposit, executingSwap, reQuoteRequired, screeningWalletAddress, frozen "completed"