Exportar la llave privada
curl --request POST \
--url https://api.qbank.cl/platform/v1/segregated-wallets/{walletID}/export \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "Custody migration to the client cold wallet"
}
'import requests
url = "https://api.qbank.cl/platform/v1/segregated-wallets/{walletID}/export"
payload = { "reason": "Custody migration to the client cold wallet" }
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({reason: 'Custody migration to the client cold wallet'})
};
fetch('https://api.qbank.cl/platform/v1/segregated-wallets/{walletID}/export', 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/{walletID}/export",
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([
'reason' => 'Custody migration to the client cold wallet'
]),
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/{walletID}/export"
payload := strings.NewReader("{\n \"reason\": \"Custody migration to the client cold wallet\"\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/{walletID}/export")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"reason\": \"Custody migration to the client cold wallet\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/segregated-wallets/{walletID}/export")
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 \"reason\": \"Custody migration to the client cold wallet\"\n}"
response = http.request(request)
puts response.read_body{
"wallet": {
"wallet_id": "b7e3a1c2-9f4d-4a8b-8c1e-2d3f4a5b6c7d",
"chain": "tron",
"asset": "USDT",
"address": "TRmSZRaMAqLEevAdGwo3R43bRBXamWR5bd",
"exported": true,
"exported_at": "2026-07-11T12:10:00Z"
},
"private_key_hex": "<64 hex>",
"export": {
"custody": "shared",
"warning": "anyone holding this private key controls the wallet funds; the wallet remains operational in the platform"
}
}{
"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": "export_unavailable",
"message": "private key export is not enabled on this environment"
}Exportar la llave privada
Devuelve la llave privada de la wallet (custodia compartida: la wallet sigue operativa en la plataforma tras exportar). La operación más sensible del producto: exige sesión de usuario con 2FA (API keys rechazadas), cuenta verificada y un reason de al menos 20 caracteres que queda en la auditoría. Cada export dispara el webhook wallet_key_exported. Cobra el fee wallet_export.
POST
/
v1
/
segregated-wallets
/
{walletID}
/
export
Exportar la llave privada
curl --request POST \
--url https://api.qbank.cl/platform/v1/segregated-wallets/{walletID}/export \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "Custody migration to the client cold wallet"
}
'import requests
url = "https://api.qbank.cl/platform/v1/segregated-wallets/{walletID}/export"
payload = { "reason": "Custody migration to the client cold wallet" }
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({reason: 'Custody migration to the client cold wallet'})
};
fetch('https://api.qbank.cl/platform/v1/segregated-wallets/{walletID}/export', 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/{walletID}/export",
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([
'reason' => 'Custody migration to the client cold wallet'
]),
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/{walletID}/export"
payload := strings.NewReader("{\n \"reason\": \"Custody migration to the client cold wallet\"\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/{walletID}/export")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"reason\": \"Custody migration to the client cold wallet\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/v1/segregated-wallets/{walletID}/export")
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 \"reason\": \"Custody migration to the client cold wallet\"\n}"
response = http.request(request)
puts response.read_body{
"wallet": {
"wallet_id": "b7e3a1c2-9f4d-4a8b-8c1e-2d3f4a5b6c7d",
"chain": "tron",
"asset": "USDT",
"address": "TRmSZRaMAqLEevAdGwo3R43bRBXamWR5bd",
"exported": true,
"exported_at": "2026-07-11T12:10:00Z"
},
"private_key_hex": "<64 hex>",
"export": {
"custody": "shared",
"warning": "anyone holding this private key controls the wallet funds; the wallet remains operational in the platform"
}
}{
"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": "export_unavailable",
"message": "private key export is not enabled on this environment"
}Autorizaciones
JWT de sesión (de register/login) o llave de API (pk_...).
X-API-Key: <token> se acepta como header alternativo.
Encabezados
Parámetros de ruta
Cuerpo
application/json
Al menos 20 caracteres; queda en la auditoría.
Respuesta
La llave privada (guárdala de forma segura).
The response is of type object.
Última modificación el 18 de julio de 2026
⌘I