Verify Valid Address
curl --request GET \
--url https://sandbox-openapi.bisonblock.ai/api/v1/wallet/address/valid \
--header 'BIZ-API-KEY: <api-key>' \
--header 'BIZ-API-NONCE: <api-key>' \
--header 'BIZ-API-SIGNATURE: <api-key>'import requests
url = "https://sandbox-openapi.bisonblock.ai/api/v1/wallet/address/valid"
headers = {
"BIZ-API-KEY": "<api-key>",
"BIZ-API-NONCE": "<api-key>",
"BIZ-API-SIGNATURE": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'BIZ-API-KEY': '<api-key>',
'BIZ-API-NONCE': '<api-key>',
'BIZ-API-SIGNATURE': '<api-key>'
}
};
fetch('https://sandbox-openapi.bisonblock.ai/api/v1/wallet/address/valid', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox-openapi.bisonblock.ai/api/v1/wallet/address/valid",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"BIZ-API-KEY: <api-key>",
"BIZ-API-NONCE: <api-key>",
"BIZ-API-SIGNATURE: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox-openapi.bisonblock.ai/api/v1/wallet/address/valid"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("BIZ-API-KEY", "<api-key>")
req.Header.Add("BIZ-API-NONCE", "<api-key>")
req.Header.Add("BIZ-API-SIGNATURE", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox-openapi.bisonblock.ai/api/v1/wallet/address/valid")
.header("BIZ-API-KEY", "<api-key>")
.header("BIZ-API-NONCE", "<api-key>")
.header("BIZ-API-SIGNATURE", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-openapi.bisonblock.ai/api/v1/wallet/address/valid")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["BIZ-API-KEY"] = '<api-key>'
request["BIZ-API-NONCE"] = '<api-key>'
request["BIZ-API-SIGNATURE"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"code": 123,
"data": {
"valid": true
},
"msg": "<string>"
}Wallets
Verify Valid Address
检查地址是否合法。
This endpoint checks whether a given cryptocurrency address is valid and returns a boolean value.
GET
/
v1
/
wallet
/
address
/
valid
Verify Valid Address
curl --request GET \
--url https://sandbox-openapi.bisonblock.ai/api/v1/wallet/address/valid \
--header 'BIZ-API-KEY: <api-key>' \
--header 'BIZ-API-NONCE: <api-key>' \
--header 'BIZ-API-SIGNATURE: <api-key>'import requests
url = "https://sandbox-openapi.bisonblock.ai/api/v1/wallet/address/valid"
headers = {
"BIZ-API-KEY": "<api-key>",
"BIZ-API-NONCE": "<api-key>",
"BIZ-API-SIGNATURE": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'BIZ-API-KEY': '<api-key>',
'BIZ-API-NONCE': '<api-key>',
'BIZ-API-SIGNATURE': '<api-key>'
}
};
fetch('https://sandbox-openapi.bisonblock.ai/api/v1/wallet/address/valid', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox-openapi.bisonblock.ai/api/v1/wallet/address/valid",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"BIZ-API-KEY: <api-key>",
"BIZ-API-NONCE: <api-key>",
"BIZ-API-SIGNATURE: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox-openapi.bisonblock.ai/api/v1/wallet/address/valid"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("BIZ-API-KEY", "<api-key>")
req.Header.Add("BIZ-API-NONCE", "<api-key>")
req.Header.Add("BIZ-API-SIGNATURE", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox-openapi.bisonblock.ai/api/v1/wallet/address/valid")
.header("BIZ-API-KEY", "<api-key>")
.header("BIZ-API-NONCE", "<api-key>")
.header("BIZ-API-SIGNATURE", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-openapi.bisonblock.ai/api/v1/wallet/address/valid")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["BIZ-API-KEY"] = '<api-key>'
request["BIZ-API-NONCE"] = '<api-key>'
request["BIZ-API-SIGNATURE"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"code": 123,
"data": {
"valid": true
},
"msg": "<string>"
}Authorizations
This field contains the API key.
This field contains the nonce.
This field contains the signature.
Query Parameters
The cryptocurrency address.
Chain's slip44 code, such as Bitcoin is 0, Ethereum is 60, Tron is 195. Refer to Registered coin types
Required range:
x >= 0Was this page helpful?
⌘I