导入外部钱包
curl --request POST \
--url https://api.qbank.cl/platform/v1/segregated-wallets/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"chain": "tron",
"asset": "usdt",
"private_key_hex": "<64 hex>",
"label": "Migrated wallet",
"idempotency_key": "import-001"
}
'import requests
url = "https://api.qbank.cl/platform/v1/segregated-wallets/import"
payload = {
"chain": "tron",
"asset": "usdt",
"private_key_hex": "<64 hex>",
"label": "Migrated wallet",
"idempotency_key": "import-001"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
chain: 'tron',
asset: 'usdt',
private_key_hex: '<64 hex>',
label: 'Migrated wallet',
idempotency_key: 'import-001'
})
};
fetch('https://api.qbank.cl/platform/v1/segregated-wallets/import', 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://api.qbank.cl/platform/v1/segregated-wallets/import",
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([
'chain' => 'tron',
'asset' => 'usdt',
'private_key_hex' => '<64 hex>',
'label' => 'Migrated wallet',
'idempotency_key' => 'import-001'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.qbank.cl/platform/v1/segregated-wallets/import"
payload := strings.NewReader("{\n \"chain\": \"tron\",\n \"asset\": \"usdt\",\n \"private_key_hex\": \"<64 hex>\",\n \"label\": \"Migrated wallet\",\n \"idempotency_key\": \"import-001\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.qbank.cl/platform/v1/segregated-wallets/import")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"chain\": \"tron\",\n \"asset\": \"usdt\",\n \"private_key_hex\": \"<64 hex>\",\n \"label\": \"Migrated wallet\",\n \"idempotency_key\": \"import-001\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/segregated-wallets/import")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"chain\": \"tron\",\n \"asset\": \"usdt\",\n \"private_key_hex\": \"<64 hex>\",\n \"label\": \"Migrated wallet\",\n \"idempotency_key\": \"import-001\"\n}"
response = http.request(request)
puts response.read_body{
"wallet_id": "c8f4b2d3-1a2b-4c3d-9e8f-7a6b5c4d3e2f",
"chain": "tron",
"asset": "USDT",
"address": "TXimportedAddr00000000000000000000",
"label": "Migrated wallet",
"type": "segregated",
"origin": "imported",
"custody": "client",
"exported": false,
"created_at": "2026-07-11T12:02:00Z"
}{
"error": "unauthorized",
"message": "invalid or missing credentials"
}{
"error": "human_session_required",
"message": "this operation handles private key material and requires a signed-in user session with 2FA; API keys are not allowed"
}{
"error": "wallet_limit_reached",
"message": "person accounts hold one segregated wallet per network/asset pair; company accounts have no limit"
}导入外部钱包
通过提供 private_key_hex 导入你已控制的钱包。私钥只会传输至托管方,平台绝不存储或记录。需要带 2FA 的登录用户会话(API key 会以 human_session_required 被拒)、已验证账户和 OTP。收取 wallet_import 费用(若核心拒绝则退款)。
POST
/
v1
/
segregated-wallets
/
import
导入外部钱包
curl --request POST \
--url https://api.qbank.cl/platform/v1/segregated-wallets/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"chain": "tron",
"asset": "usdt",
"private_key_hex": "<64 hex>",
"label": "Migrated wallet",
"idempotency_key": "import-001"
}
'import requests
url = "https://api.qbank.cl/platform/v1/segregated-wallets/import"
payload = {
"chain": "tron",
"asset": "usdt",
"private_key_hex": "<64 hex>",
"label": "Migrated wallet",
"idempotency_key": "import-001"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
chain: 'tron',
asset: 'usdt',
private_key_hex: '<64 hex>',
label: 'Migrated wallet',
idempotency_key: 'import-001'
})
};
fetch('https://api.qbank.cl/platform/v1/segregated-wallets/import', 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://api.qbank.cl/platform/v1/segregated-wallets/import",
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([
'chain' => 'tron',
'asset' => 'usdt',
'private_key_hex' => '<64 hex>',
'label' => 'Migrated wallet',
'idempotency_key' => 'import-001'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.qbank.cl/platform/v1/segregated-wallets/import"
payload := strings.NewReader("{\n \"chain\": \"tron\",\n \"asset\": \"usdt\",\n \"private_key_hex\": \"<64 hex>\",\n \"label\": \"Migrated wallet\",\n \"idempotency_key\": \"import-001\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.qbank.cl/platform/v1/segregated-wallets/import")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"chain\": \"tron\",\n \"asset\": \"usdt\",\n \"private_key_hex\": \"<64 hex>\",\n \"label\": \"Migrated wallet\",\n \"idempotency_key\": \"import-001\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/segregated-wallets/import")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"chain\": \"tron\",\n \"asset\": \"usdt\",\n \"private_key_hex\": \"<64 hex>\",\n \"label\": \"Migrated wallet\",\n \"idempotency_key\": \"import-001\"\n}"
response = http.request(request)
puts response.read_body{
"wallet_id": "c8f4b2d3-1a2b-4c3d-9e8f-7a6b5c4d3e2f",
"chain": "tron",
"asset": "USDT",
"address": "TXimportedAddr00000000000000000000",
"label": "Migrated wallet",
"type": "segregated",
"origin": "imported",
"custody": "client",
"exported": false,
"created_at": "2026-07-11T12:02:00Z"
}{
"error": "unauthorized",
"message": "invalid or missing credentials"
}{
"error": "human_session_required",
"message": "this operation handles private key material and requires a signed-in user session with 2FA; API keys are not allowed"
}{
"error": "wallet_limit_reached",
"message": "person accounts hold one segregated wallet per network/asset pair; company accounts have no limit"
}授权
会话 JWT(来自注册/登录)或 API key(pk_...)。
也接受 X-API-Key: <token> 作为替代请求头。
请求头
一次性 OTP 挑战令牌(用户会话)。
请求体
application/json
响应
钱包已导入。
最后修改于 2026年7月18日
⌘I