Validate Crypto Address
const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({blockchain: 'MATIC', address: '0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B'})
};
fetch('https://sandboxapi.me-cash.com/v1/ramp/address/validate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://sandboxapi.me-cash.com/v1/ramp/address/validate \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"blockchain": "MATIC",
"address": "0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B"
}
'import requests
url = "https://sandboxapi.me-cash.com/v1/ramp/address/validate"
payload = {
"blockchain": "MATIC",
"address": "0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const url = 'https://sandboxapi.me-cash.com/v1/ramp/address/validate';
const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({blockchain: 'MATIC', address: '0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B'})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandboxapi.me-cash.com/v1/ramp/address/validate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'blockchain' => 'MATIC',
'address' => '0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.post("https://sandboxapi.me-cash.com/v1/ramp/address/validate")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"blockchain\": \"MATIC\",\n \"address\": \"0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandboxapi.me-cash.com/v1/ramp/address/validate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"blockchain\": \"MATIC\",\n \"address\": \"0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B\"\n}"
response = http.request(request)
puts response.read_bodyimport Foundation
let parameters = [
"blockchain": "MATIC",
"address": "0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B"
] as [String : Any?]
let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])
let url = URL(string: "https://sandboxapi.me-cash.com/v1/ramp/address/validate")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.timeoutInterval = 10
request.allHTTPHeaderFields = [
"x-api-key": "<api-key>",
"Content-Type": "application/json"
]
request.httpBody = postData
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"blockchain\": \"MATIC\",\n \"address\": \"0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B\"\n}")
val request = Request.Builder()
.url("https://sandboxapi.me-cash.com/v1/ramp/address/validate")
.post(body)
.addHeader("x-api-key", "<api-key>")
.addHeader("Content-Type", "application/json")
.build()
val response = client.newCall(request).execute()falsepackage main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandboxapi.me-cash.com/v1/ramp/address/validate"
payload := strings.NewReader("{\n \"blockchain\": \"MATIC\",\n \"address\": \"0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"status": "success",
"message": "Operation completed successfully.",
"data": {
"valid": true
}
}{
"message": "Unsupported blockchain network",
"status": "failed"
}{
"message": "Invalid API key",
"status": "failed"
}{
"message": "Access denied: IP address not whitelisted",
"status": "failed"
}{
"message": "Invalid address format for the specified blockchain",
"status": "failed"
}{
"message": "Server failed to process request.",
"status": "failed"
}Miscellaneous
Validate Crypto Address
Validates a blockchain address to confirm its format and existence.
POST
/
v1
/
ramp
/
address
/
validate
Validate Crypto Address
const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({blockchain: 'MATIC', address: '0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B'})
};
fetch('https://sandboxapi.me-cash.com/v1/ramp/address/validate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://sandboxapi.me-cash.com/v1/ramp/address/validate \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"blockchain": "MATIC",
"address": "0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B"
}
'import requests
url = "https://sandboxapi.me-cash.com/v1/ramp/address/validate"
payload = {
"blockchain": "MATIC",
"address": "0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const url = 'https://sandboxapi.me-cash.com/v1/ramp/address/validate';
const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({blockchain: 'MATIC', address: '0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B'})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandboxapi.me-cash.com/v1/ramp/address/validate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'blockchain' => 'MATIC',
'address' => '0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.post("https://sandboxapi.me-cash.com/v1/ramp/address/validate")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"blockchain\": \"MATIC\",\n \"address\": \"0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandboxapi.me-cash.com/v1/ramp/address/validate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"blockchain\": \"MATIC\",\n \"address\": \"0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B\"\n}"
response = http.request(request)
puts response.read_bodyimport Foundation
let parameters = [
"blockchain": "MATIC",
"address": "0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B"
] as [String : Any?]
let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])
let url = URL(string: "https://sandboxapi.me-cash.com/v1/ramp/address/validate")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.timeoutInterval = 10
request.allHTTPHeaderFields = [
"x-api-key": "<api-key>",
"Content-Type": "application/json"
]
request.httpBody = postData
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"blockchain\": \"MATIC\",\n \"address\": \"0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B\"\n}")
val request = Request.Builder()
.url("https://sandboxapi.me-cash.com/v1/ramp/address/validate")
.post(body)
.addHeader("x-api-key", "<api-key>")
.addHeader("Content-Type", "application/json")
.build()
val response = client.newCall(request).execute()falsepackage main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandboxapi.me-cash.com/v1/ramp/address/validate"
payload := strings.NewReader("{\n \"blockchain\": \"MATIC\",\n \"address\": \"0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"status": "success",
"message": "Operation completed successfully.",
"data": {
"valid": true
}
}{
"message": "Unsupported blockchain network",
"status": "failed"
}{
"message": "Invalid API key",
"status": "failed"
}{
"message": "Access denied: IP address not whitelisted",
"status": "failed"
}{
"message": "Invalid address format for the specified blockchain",
"status": "failed"
}{
"message": "Server failed to process request.",
"status": "failed"
}Authorizations
Body
application/json
Was this page helpful?
⌘I

