\OnramperAPI
All URIs are relative to https://beta.usemoon.ai
OnRamperCheckout
Post /onramper/fund/${accountName}
OnRamperGetQuotesBuy
Get /onramper/quotes/buy
OnRamperGetQuotesSell
Get /onramper/quotes/sell
OnRamperGetSupportedAssets
Get /onramper/assets
OnRamperGetSupportedCurrencies
Get /onramper/currencies
OnRamperGetSupportedDefaultsAll
Get /onramper/defaults
OnRamperGetSupportedOnRampsAll
Get /onramper/onramps
OnRamperGetSupportedPaymentTypes
Get /onramper/payment-types
OnRamperGetSupportedPaymentTypesFiat
Get /onramper/payment-types/fiat
OnRamperCheckout
interface{} OnRamperCheckout(ctx, accountName).Authorization(authorization).TransactionInput(transactionInput).Execute()
Example
Path Parameters
ctx
context.Context
context for authentication, logging, cancellation, deadlines, tracing, etc.
accountName
string
Other Parameters
Other parameters are passed through a pointer to a apiOnRamperCheckoutRequest struct via the builder pattern
authorization
string
transactionInput | TransactionInput | |
Return type
interface{}
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: application/json
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OnRamperGetQuotesBuy
[]Quote OnRamperGetQuotesBuy(ctx).Authorization(authorization).Fiat(fiat).Crypto(crypto).Amount(amount).PaymentMethod(paymentMethod).Uuid(uuid).ClientName(clientName).Country(country).Execute()
Example
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiOnRamperGetQuotesBuyRequest struct via the builder pattern
authorization
string
fiat
string
crypto
string
amount
float64
paymentMethod
string
[default to "creditcard"]
uuid
string
[default to ""]
clientName
string
[default to ""]
country
string
[default to ""]
Return type
[]Quote
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OnRamperGetQuotesSell
[]SellQuote OnRamperGetQuotesSell(ctx).Authorization(authorization).Fiat(fiat).Crypto(crypto).Amount(amount).PaymentMethod(paymentMethod).Uuid(uuid).ClientName(clientName).Country(country).Execute()
Example
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiOnRamperGetQuotesSellRequest struct via the builder pattern
authorization
string
fiat
string
crypto
string
amount
float64
paymentMethod
string
[default to "creditcard"]
uuid
string
[default to ""]
clientName
string
[default to ""]
country
string
[default to ""]
Return type
[]SellQuote
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OnRamperGetSupportedAssets
SupportedAssetResponse OnRamperGetSupportedAssets(ctx).Authorization(authorization).Source(source).Country(country).Execute()
Example
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiOnRamperGetSupportedAssetsRequest struct via the builder pattern
authorization
string
source
string
country
string
Return type
SupportedAssetResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OnRamperGetSupportedCurrencies
SupportedCurrenciesResponse OnRamperGetSupportedCurrencies(ctx).Authorization(authorization).Type_(type_).Execute()
Example
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiOnRamperGetSupportedCurrenciesRequest struct via the builder pattern
authorization
string
type_
string
Return type
SupportedCurrenciesResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OnRamperGetSupportedDefaultsAll
SupportedDefaultResponse OnRamperGetSupportedDefaultsAll(ctx).Authorization(authorization).Country(country).Type_(type_).Execute()
Example
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiOnRamperGetSupportedDefaultsAllRequest struct via the builder pattern
authorization
string
country
string
type_
string
Return type
SupportedDefaultResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OnRamperGetSupportedOnRampsAll
GetSupportedOnRampsResponse OnRamperGetSupportedOnRampsAll(ctx).Authorization(authorization).Execute()
Example
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiOnRamperGetSupportedOnRampsAllRequest struct via the builder pattern
authorization
string
Return type
GetSupportedOnRampsResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OnRamperGetSupportedPaymentTypes
SupportedPaymentTypesCurrencyResponse OnRamperGetSupportedPaymentTypes(ctx).Authorization(authorization).Fiat(fiat).Country(country).Type_(type_).Execute()
Example
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiOnRamperGetSupportedPaymentTypesRequest struct via the builder pattern
authorization
string
fiat
string
country
string
type_
string
Return type
SupportedPaymentTypesCurrencyResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OnRamperGetSupportedPaymentTypesFiat
SupportedPaymentTypesCurrencyResponse OnRamperGetSupportedPaymentTypesFiat(ctx).Authorization(authorization).Fiat(fiat).Country(country).Execute()
Example
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiOnRamperGetSupportedPaymentTypesFiatRequest struct via the builder pattern
authorization
string
fiat
string
country
string
Return type
SupportedPaymentTypesCurrencyResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]