Skip to main content

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.

Interfaces

Type Aliases

CryptoCurrency

CryptoCurrency: Object Represents a Crypto currency such as ETH Type declaration
NameTypeDescription
chainIdstring | nullThe chain’s Chain ID
codestringThe code of the currency such as “eth”
coinTypestring | nullThe coin type as defined in SLIP-0044
contractAddressstring | nullThe address location of the token contract on the blockchain
idstringThe identifier of the crypto currency
namestringThe human readable name of the currency such as “Ethereum”
networkCodestring | nullThe currency’s network such as “bitcoin” or “ethereum”

FiatCurrency

FiatCurrency: Object Represents a Fiat currency such as USD Type declaration
NameTypeDescription
codestringThe code of the currency such as “usd”
idstringThe identifier of the fiat currency
namestringThe human readable name of the currency such as “US Dollar”

OnAuthTokenProps

OnAuthTokenProps: Object This event is only fired for those integrating with our Swaps (SDK+API) product. Type declaration
NameTypeDescription
csrfTokenstringThe customer’s CSRF token. Only provided to authorized integrations.
tokenstringThe customer’s authentication token. Only provided to authorized integrations.

OnInitiateDepositProps

OnInitiateDepositProps: Object Type declaration
NameTypeDescription
cryptoCurrencyCryptoCurrencyThe crypto currency that is being off-ramped
cryptoCurrencyAmountstringCrypto amount in its base unit (0.123 ETH === “0.123”)
cryptoCurrencyAmountSmallestDenominationstringCrypto amount in its smallest unit (1 ETH === 1x10^18)
depositWalletAddressstringThe wallet address where the crypto amount needs to be deposited
fiatCurrencyFiatCurrencyThe fiat currency that the customer will receive
fiatCurrencyAmountstring | nullFiat amount in its base unit ($1.23 === “1.23”). Only set for fixed quotes.
transactionIdstringThe identifier of the transaction

OnInitiateDepositReplyProps

OnInitiateDepositReplyProps: Object Type declaration
NameTypeDescription
depositIdstringThe partner’s identifier for a successful deposit. Can be any string, eg the transaction hash.

OnLoginProps

OnLoginProps: Object Type declaration
NameTypeDescription
isRefreshbooleanIf true, the customer didn’t actually log in but rather their authentication was refreshed.

OnTransactionCreatedProps

OnTransactionCompletedProps: Object Type declaration
NameTypeDescription
baseCurrencyFiatCurrencyThe base (fiat) currency
baseCurrencyAmountnumberThe spent fiat amount
idstringThe identifier of the transaction
statusTransactionStatus | SellTransactionStatusThe current status of the transaction

OnTransactionCompletedProps

OnTransactionCompletedProps: Object Type declaration
NameTypeDescription
areFeesIncludedbooleanWhether the base currency amount includes fees
baseCurrencyFiatCurrencyThe base (fiat) currency
baseCurrencyAmountnumberThe spent fiat amount
createdAtstringWhen the transaction was created
extraFeeAmountnumberThe partner’s fee amount, in the fiat currency
feeAmountnumberThe MoonPay fee amount, in the fiat currency
idstringThe identifier of the transaction
networkFeeAmountnumberThe network fees incurred in this transaction, in the fiat currency
quoteCurrencyCryptoCurrencyThe quote (crypto) currency
quoteCurrencyAmountnumberThe expected or received quote amount
statusTransactionStatusThe current status of the transaction
walletAddressstringThe customer’s destination wallet address
walletAddressTagstring | nullThe customer’s destination wallet address tag

TransactionStatus

TransactionStatus: "completed" | "failed" | "pending" | "waitingAuthorization" | "waitingPayment"

SellTransactionStatus

SellTransactionStatus: "completed" | "failed" | "pending" | "waitingForDeposit"