wallet/getnewshieldedaddress
curl --request POST \
--url https://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/wallet/getnewshieldedaddress \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/wallet/getnewshieldedaddress"
payload = {}
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({})
};
fetch('https://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/wallet/getnewshieldedaddress', 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/getnewshieldedaddress",
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([
]),
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/getnewshieldedaddress"
payload := strings.NewReader("{}")
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/getnewshieldedaddress")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/wallet/getnewshieldedaddress")
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 = "{}"
response = http.request(request)
puts response.read_body{
"sk": "02a1b2c3d4e5f67890123456789012345678901234567890123456789012345678",
"ask": "0f63eabdfe2bbfe08012f6bb2db024e6809c16e8ed055aa41a6095424f192005",
"nsk": "590bf33f93f792be659fd404df91e75c3b08d38d4e08ee226c3f5219cf598f14",
"ovk": "0ff58efd75e083fe4fd759c8701e1c8cb6961c4297a12b2c800bdb7b2bcab889",
"ak": "8072d9110c9de9d9ade33d5d0f5890a7aa65b0cde42af7816d187297caf2fd64",
"nk": "590bf33f93f792be659fd404df91e75c3b08d38d4e08ee226c3f5219cf598f14",
"ivk": "9f8e74bb3d7188a2781dc1db38810c6914eef4570a79e8ec8404480948e4e305",
"d": "06e5f678901234567890ab",
"pkD": "a1b2c3d4e5f6789012345678901234567890123456789012345678901234abcd",
"payment_address": "ztron1768kf7dy4qquefp46szk978d65eeua66yhr4zv260c0uzj68t3tfjl3en9lhyyfxalv4jus30xs"
}TRON node API
wallet/getnewshieldedaddress | TRON
TRON API method that generates a complete new shielded address with all necessary keys for shielded TRC20 transactions. TRON via Chainstack.
POST
/
mt_c524ad9781ae5dccd9ac6f5b0370e
/
wallet
/
getnewshieldedaddress
wallet/getnewshieldedaddress
curl --request POST \
--url https://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/wallet/getnewshieldedaddress \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/wallet/getnewshieldedaddress"
payload = {}
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({})
};
fetch('https://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/wallet/getnewshieldedaddress', 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/getnewshieldedaddress",
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([
]),
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/getnewshieldedaddress"
payload := strings.NewReader("{}")
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/getnewshieldedaddress")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/wallet/getnewshieldedaddress")
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 = "{}"
response = http.request(request)
puts response.read_body{
"sk": "02a1b2c3d4e5f67890123456789012345678901234567890123456789012345678",
"ask": "0f63eabdfe2bbfe08012f6bb2db024e6809c16e8ed055aa41a6095424f192005",
"nsk": "590bf33f93f792be659fd404df91e75c3b08d38d4e08ee226c3f5219cf598f14",
"ovk": "0ff58efd75e083fe4fd759c8701e1c8cb6961c4297a12b2c800bdb7b2bcab889",
"ak": "8072d9110c9de9d9ade33d5d0f5890a7aa65b0cde42af7816d187297caf2fd64",
"nk": "590bf33f93f792be659fd404df91e75c3b08d38d4e08ee226c3f5219cf598f14",
"ivk": "9f8e74bb3d7188a2781dc1db38810c6914eef4570a79e8ec8404480948e4e305",
"d": "06e5f678901234567890ab",
"pkD": "a1b2c3d4e5f6789012345678901234567890123456789012345678901234abcd",
"payment_address": "ztron1768kf7dy4qquefp46szk978d65eeua66yhr4zv260c0uzj68t3tfjl3en9lhyyfxalv4jus30xs"
}TRON API method that generates a complete new shielded address with all necessary keys for shielded TRC20 transactions. This is a convenience method that creates a full shielded address setup.
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
This method takes no parameters.Response
sk— the spending key (private key for the address)ask— the authentication secret keynsk— the nullifier secret keyovk— the outgoing viewing keyak— the authentication keynk— the nullifier keyivk— the incoming viewing keyd— the diversifierpkD— the payment address public keypayment_address— the complete shielded payment address
Use case
Thewallet/getnewshieldedaddress method is used for:
- Quickly setting up new shielded addresses for privacy-preserving transactions
- Generating complete key sets needed for shielded TRC20 operations
- Simplifying wallet implementations that need full shielded address functionality
- Creating addresses for users who want to participate in private transactions
Body
application/json
The body is of type object.
Response
200 - application/json
Successfully generated new shielded address with full key set
Last modified on November 6, 2026
Was this page helpful?