curl --request POST \
--url https://sandbox-openapi.bisonblock.ai/api/v1/wallet/address \
--header 'BIZ-API-KEY: <api-key>' \
--header 'BIZ-API-NONCE: <api-key>' \
--header 'BIZ-API-SIGNATURE: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"slip44": 1,
"num": 100
}
'import requests
url = "https://sandbox-openapi.bisonblock.ai/api/v1/wallet/address"
payload = {
"slip44": 1,
"num": 100
}
headers = {
"BIZ-API-KEY": "<api-key>",
"BIZ-API-NONCE": "<api-key>",
"BIZ-API-SIGNATURE": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'BIZ-API-KEY': '<api-key>',
'BIZ-API-NONCE': '<api-key>',
'BIZ-API-SIGNATURE': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({slip44: 1, num: 100})
};
fetch('https://sandbox-openapi.bisonblock.ai/api/v1/wallet/address', 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",
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([
'slip44' => 1,
'num' => 100
]),
CURLOPT_HTTPHEADER => [
"BIZ-API-KEY: <api-key>",
"BIZ-API-NONCE: <api-key>",
"BIZ-API-SIGNATURE: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox-openapi.bisonblock.ai/api/v1/wallet/address"
payload := strings.NewReader("{\n \"slip44\": 1,\n \"num\": 100\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("BIZ-API-KEY", "<api-key>")
req.Header.Add("BIZ-API-NONCE", "<api-key>")
req.Header.Add("BIZ-API-SIGNATURE", "<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))
}HttpResponse<String> response = Unirest.post("https://sandbox-openapi.bisonblock.ai/api/v1/wallet/address")
.header("BIZ-API-KEY", "<api-key>")
.header("BIZ-API-NONCE", "<api-key>")
.header("BIZ-API-SIGNATURE", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"slip44\": 1,\n \"num\": 100\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-openapi.bisonblock.ai/api/v1/wallet/address")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["BIZ-API-KEY"] = '<api-key>'
request["BIZ-API-NONCE"] = '<api-key>'
request["BIZ-API-SIGNATURE"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"slip44\": 1,\n \"num\": 100\n}"
response = http.request(request)
puts response.read_body{
"code": 123,
"data": [
{
"address": "<string>"
}
],
"msg": "<string>"
}Generate New Addresses
生成新的充值地址。
This endpoint generates new addresses for a given chain’s slip44 and returns them in a JSON response. The number of addresses to generate can be specified in the request body. The endpoint checks if the user has permission to add new addresses and if the requested number of addresses is within the allowed limit. It also checks if the requested chain is supported and generates the addresses using the specified wallet. The response contains a list of generated addresses.
curl --request POST \
--url https://sandbox-openapi.bisonblock.ai/api/v1/wallet/address \
--header 'BIZ-API-KEY: <api-key>' \
--header 'BIZ-API-NONCE: <api-key>' \
--header 'BIZ-API-SIGNATURE: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"slip44": 1,
"num": 100
}
'import requests
url = "https://sandbox-openapi.bisonblock.ai/api/v1/wallet/address"
payload = {
"slip44": 1,
"num": 100
}
headers = {
"BIZ-API-KEY": "<api-key>",
"BIZ-API-NONCE": "<api-key>",
"BIZ-API-SIGNATURE": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'BIZ-API-KEY': '<api-key>',
'BIZ-API-NONCE': '<api-key>',
'BIZ-API-SIGNATURE': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({slip44: 1, num: 100})
};
fetch('https://sandbox-openapi.bisonblock.ai/api/v1/wallet/address', 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",
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([
'slip44' => 1,
'num' => 100
]),
CURLOPT_HTTPHEADER => [
"BIZ-API-KEY: <api-key>",
"BIZ-API-NONCE: <api-key>",
"BIZ-API-SIGNATURE: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox-openapi.bisonblock.ai/api/v1/wallet/address"
payload := strings.NewReader("{\n \"slip44\": 1,\n \"num\": 100\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("BIZ-API-KEY", "<api-key>")
req.Header.Add("BIZ-API-NONCE", "<api-key>")
req.Header.Add("BIZ-API-SIGNATURE", "<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))
}HttpResponse<String> response = Unirest.post("https://sandbox-openapi.bisonblock.ai/api/v1/wallet/address")
.header("BIZ-API-KEY", "<api-key>")
.header("BIZ-API-NONCE", "<api-key>")
.header("BIZ-API-SIGNATURE", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"slip44\": 1,\n \"num\": 100\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-openapi.bisonblock.ai/api/v1/wallet/address")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["BIZ-API-KEY"] = '<api-key>'
request["BIZ-API-NONCE"] = '<api-key>'
request["BIZ-API-SIGNATURE"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"slip44\": 1,\n \"num\": 100\n}"
response = http.request(request)
puts response.read_body{
"code": 123,
"data": [
{
"address": "<string>"
}
],
"msg": "<string>"
}Authorizations
This field contains the API key.
This field contains the nonce.
This field contains the signature.
Body
Chain's slip44 code, such as Bitcoin is 0, Ethereum is 60, Tron is 195. Refer to Registered coin types
x >= 0The number of addresses to generate, default is 1
1 <= x <= 200Was this page helpful?