cURL
curl --request GET \
--url http://localhost:4100/v1/onramp/methodsconst options = {method: 'GET'};
fetch('http://localhost:4100/v1/onramp/methods', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
{
"chainKey": "8453",
"defaultToken": "<string>"
}
]{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}Onramp
Get v1onrampmethods
Available only when configured MoonPay coverage includes Base Mainnet.
cURL
curl --request GET \
--url http://localhost:4100/v1/onramp/methodsconst options = {method: 'GET'};
fetch('http://localhost:4100/v1/onramp/methods', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
{
"chainKey": "8453",
"defaultToken": "<string>"
}
]{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}