wallet/createshieldedtransaction
curl --request POST \
--url https://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/wallet/createshieldedtransaction \
--header 'Content-Type: application/json' \
--data '
{
"to_address": "ztron1a2b3c4d5e6f7g8h9j0k1l2m3n4p5q6r7s8t9u0v1w2x3y4z5a6b7c8d9e0f1g2h3j4k5l6m7n8p9",
"to_amount": 1000000,
"transparent_from_address": "TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE",
"from_amount": 1000000,
"spend_authority_signature": [
"<string>"
],
"ask": "08a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890",
"nsk": "09a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890",
"ovk": "0aa1b2c3d4e5f6789012345678901234567890123456789012345678901234567890"
}
'import requests
url = "https://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/wallet/createshieldedtransaction"
payload = {
"to_address": "ztron1a2b3c4d5e6f7g8h9j0k1l2m3n4p5q6r7s8t9u0v1w2x3y4z5a6b7c8d9e0f1g2h3j4k5l6m7n8p9",
"to_amount": 1000000,
"transparent_from_address": "TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE",
"from_amount": 1000000,
"spend_authority_signature": ["<string>"],
"ask": "08a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890",
"nsk": "09a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890",
"ovk": "0aa1b2c3d4e5f6789012345678901234567890123456789012345678901234567890"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
to_address: 'ztron1a2b3c4d5e6f7g8h9j0k1l2m3n4p5q6r7s8t9u0v1w2x3y4z5a6b7c8d9e0f1g2h3j4k5l6m7n8p9',
to_amount: 1000000,
transparent_from_address: 'TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE',
from_amount: 1000000,
spend_authority_signature: ['<string>'],
ask: '08a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890',
nsk: '09a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890',
ovk: '0aa1b2c3d4e5f6789012345678901234567890123456789012345678901234567890'
})
};
fetch('https://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/wallet/createshieldedtransaction', 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://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/wallet/createshieldedtransaction",
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([
'to_address' => 'ztron1a2b3c4d5e6f7g8h9j0k1l2m3n4p5q6r7s8t9u0v1w2x3y4z5a6b7c8d9e0f1g2h3j4k5l6m7n8p9',
'to_amount' => 1000000,
'transparent_from_address' => 'TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE',
'from_amount' => 1000000,
'spend_authority_signature' => [
'<string>'
],
'ask' => '08a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890',
'nsk' => '09a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890',
'ovk' => '0aa1b2c3d4e5f6789012345678901234567890123456789012345678901234567890'
]),
CURLOPT_HTTPHEADER => [
"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://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/wallet/createshieldedtransaction"
payload := strings.NewReader("{\n \"to_address\": \"ztron1a2b3c4d5e6f7g8h9j0k1l2m3n4p5q6r7s8t9u0v1w2x3y4z5a6b7c8d9e0f1g2h3j4k5l6m7n8p9\",\n \"to_amount\": 1000000,\n \"transparent_from_address\": \"TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE\",\n \"from_amount\": 1000000,\n \"spend_authority_signature\": [\n \"<string>\"\n ],\n \"ask\": \"08a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890\",\n \"nsk\": \"09a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890\",\n \"ovk\": \"0aa1b2c3d4e5f6789012345678901234567890123456789012345678901234567890\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/wallet/createshieldedtransaction")
.header("Content-Type", "application/json")
.body("{\n \"to_address\": \"ztron1a2b3c4d5e6f7g8h9j0k1l2m3n4p5q6r7s8t9u0v1w2x3y4z5a6b7c8d9e0f1g2h3j4k5l6m7n8p9\",\n \"to_amount\": 1000000,\n \"transparent_from_address\": \"TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE\",\n \"from_amount\": 1000000,\n \"spend_authority_signature\": [\n \"<string>\"\n ],\n \"ask\": \"08a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890\",\n \"nsk\": \"09a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890\",\n \"ovk\": \"0aa1b2c3d4e5f6789012345678901234567890123456789012345678901234567890\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/wallet/createshieldedtransaction")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"to_address\": \"ztron1a2b3c4d5e6f7g8h9j0k1l2m3n4p5q6r7s8t9u0v1w2x3y4z5a6b7c8d9e0f1g2h3j4k5l6m7n8p9\",\n \"to_amount\": 1000000,\n \"transparent_from_address\": \"TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE\",\n \"from_amount\": 1000000,\n \"spend_authority_signature\": [\n \"<string>\"\n ],\n \"ask\": \"08a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890\",\n \"nsk\": \"09a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890\",\n \"ovk\": \"0aa1b2c3d4e5f6789012345678901234567890123456789012345678901234567890\"\n}"
response = http.request(request)
puts response.read_body{
"txID": "1a2b3c4d5e6f7890abcdef1234567890abcdef1234567890abcdef1234567890",
"raw_data_hex": "<string>",
"raw_data": {}
}TRON node API
wallet/createshieldedtransaction | TRON
Create fully signed shielded TRX transactions client-side. Public TRON nodes generally do not expose an RPC for wallet/createshieldedtransaction.
POST
/
mt_c524ad9781ae5dccd9ac6f5b0370e
/
wallet
/
createshieldedtransaction
wallet/createshieldedtransaction
curl --request POST \
--url https://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/wallet/createshieldedtransaction \
--header 'Content-Type: application/json' \
--data '
{
"to_address": "ztron1a2b3c4d5e6f7g8h9j0k1l2m3n4p5q6r7s8t9u0v1w2x3y4z5a6b7c8d9e0f1g2h3j4k5l6m7n8p9",
"to_amount": 1000000,
"transparent_from_address": "TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE",
"from_amount": 1000000,
"spend_authority_signature": [
"<string>"
],
"ask": "08a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890",
"nsk": "09a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890",
"ovk": "0aa1b2c3d4e5f6789012345678901234567890123456789012345678901234567890"
}
'import requests
url = "https://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/wallet/createshieldedtransaction"
payload = {
"to_address": "ztron1a2b3c4d5e6f7g8h9j0k1l2m3n4p5q6r7s8t9u0v1w2x3y4z5a6b7c8d9e0f1g2h3j4k5l6m7n8p9",
"to_amount": 1000000,
"transparent_from_address": "TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE",
"from_amount": 1000000,
"spend_authority_signature": ["<string>"],
"ask": "08a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890",
"nsk": "09a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890",
"ovk": "0aa1b2c3d4e5f6789012345678901234567890123456789012345678901234567890"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
to_address: 'ztron1a2b3c4d5e6f7g8h9j0k1l2m3n4p5q6r7s8t9u0v1w2x3y4z5a6b7c8d9e0f1g2h3j4k5l6m7n8p9',
to_amount: 1000000,
transparent_from_address: 'TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE',
from_amount: 1000000,
spend_authority_signature: ['<string>'],
ask: '08a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890',
nsk: '09a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890',
ovk: '0aa1b2c3d4e5f6789012345678901234567890123456789012345678901234567890'
})
};
fetch('https://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/wallet/createshieldedtransaction', 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://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/wallet/createshieldedtransaction",
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([
'to_address' => 'ztron1a2b3c4d5e6f7g8h9j0k1l2m3n4p5q6r7s8t9u0v1w2x3y4z5a6b7c8d9e0f1g2h3j4k5l6m7n8p9',
'to_amount' => 1000000,
'transparent_from_address' => 'TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE',
'from_amount' => 1000000,
'spend_authority_signature' => [
'<string>'
],
'ask' => '08a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890',
'nsk' => '09a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890',
'ovk' => '0aa1b2c3d4e5f6789012345678901234567890123456789012345678901234567890'
]),
CURLOPT_HTTPHEADER => [
"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://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/wallet/createshieldedtransaction"
payload := strings.NewReader("{\n \"to_address\": \"ztron1a2b3c4d5e6f7g8h9j0k1l2m3n4p5q6r7s8t9u0v1w2x3y4z5a6b7c8d9e0f1g2h3j4k5l6m7n8p9\",\n \"to_amount\": 1000000,\n \"transparent_from_address\": \"TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE\",\n \"from_amount\": 1000000,\n \"spend_authority_signature\": [\n \"<string>\"\n ],\n \"ask\": \"08a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890\",\n \"nsk\": \"09a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890\",\n \"ovk\": \"0aa1b2c3d4e5f6789012345678901234567890123456789012345678901234567890\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/wallet/createshieldedtransaction")
.header("Content-Type", "application/json")
.body("{\n \"to_address\": \"ztron1a2b3c4d5e6f7g8h9j0k1l2m3n4p5q6r7s8t9u0v1w2x3y4z5a6b7c8d9e0f1g2h3j4k5l6m7n8p9\",\n \"to_amount\": 1000000,\n \"transparent_from_address\": \"TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE\",\n \"from_amount\": 1000000,\n \"spend_authority_signature\": [\n \"<string>\"\n ],\n \"ask\": \"08a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890\",\n \"nsk\": \"09a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890\",\n \"ovk\": \"0aa1b2c3d4e5f6789012345678901234567890123456789012345678901234567890\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/wallet/createshieldedtransaction")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"to_address\": \"ztron1a2b3c4d5e6f7g8h9j0k1l2m3n4p5q6r7s8t9u0v1w2x3y4z5a6b7c8d9e0f1g2h3j4k5l6m7n8p9\",\n \"to_amount\": 1000000,\n \"transparent_from_address\": \"TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE\",\n \"from_amount\": 1000000,\n \"spend_authority_signature\": [\n \"<string>\"\n ],\n \"ask\": \"08a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890\",\n \"nsk\": \"09a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890\",\n \"ovk\": \"0aa1b2c3d4e5f6789012345678901234567890123456789012345678901234567890\"\n}"
response = http.request(request)
puts response.read_body{
"txID": "1a2b3c4d5e6f7890abcdef1234567890abcdef1234567890abcdef1234567890",
"raw_data_hex": "<string>",
"raw_data": {}
}Create fully signed shielded TRX transactions client-side. Public TRON nodes generally do not expose an RPC for
Use TRON’s shielded transaction libraries to:
wallet/createshieldedtransaction; attempting to POST to that route returns HTTP 405. Build shielded transactions locally using TRON shielded transaction libraries.
Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
transparent_from_address— the transparent TRX address sending funds (optional)from_amount— the amount to send from transparent address (in sun)spend_authority_signature— array of spending authority signatures for shielded inputsask— authentication secret key for transaction signingnsk— nullifier secret key for creating nullifiersovk— outgoing viewing key for transaction encryptionto_address— recipient shielded addressto_amount— amount to send to shielded address (in sun)
Response
txID— the transaction ID hashraw_data_hex— the raw transaction data in hexadecimal formatraw_data— the structured raw transaction data
Use case
Thewallet/createshieldedtransaction method is used for:
- Creating fully signed shielded TRX transactions for immediate broadcast
- Transferring TRX between transparent and shielded addresses
- Supporting complete privacy-preserving TRX transactions
- Enabling applications to create ready-to-broadcast shielded transactions
Client-side implementation
Public nodes typically return HTTP 405 for this route. Build shielded transactions client-side using TRON privacy libraries (e.g., tronweb with shielded support) or Sapling-compatible implementations. Generate and sign the transaction locally, then broadcast via
wallet/broadcasttransaction.- Construct the shielded inputs (spends) and outputs (receives) using your key material (ask, nsk, ovk)
- Generate the zero-knowledge proof parameters offline
- Sign the transaction with spending authority signatures
- Build the complete signed raw transaction structure
- Broadcast the transaction via
wallet/broadcasttransaction
Body
application/json
Response
200 - application/json
Successfully created shielded transaction
Last modified on November 6, 2026
Was this page helpful?