Skip to main content
POST
/
95e61622bf6a8af293978377718e3b77
/
wallet
/
getnewshieldedaddress
wallet/getnewshieldedaddress
curl --request POST \
  --url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getnewshieldedaddress \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "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 you 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 key
  • nsk — the nullifier secret key
  • ovk — the outgoing viewing key
  • ak — the authentication key
  • nk — the nullifier key
  • ivk — the incoming viewing key
  • d — the diversifier
  • pkD — the payment address public key
  • payment_address — the complete shielded payment address

Use case

The wallet/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

sk
string

Spending key (private key, 64 hex characters, no 0x prefix)

Example:

"02a1b2c3d4e5f67890123456789012345678901234567890123456789012345678"

ask
string

Authentication secret key (64 hex characters, no 0x prefix)

Example:

"0f63eabdfe2bbfe08012f6bb2db024e6809c16e8ed055aa41a6095424f192005"

nsk
string

Nullifier secret key (64 hex characters, no 0x prefix)

Example:

"590bf33f93f792be659fd404df91e75c3b08d38d4e08ee226c3f5219cf598f14"

ovk
string

Outgoing viewing key (64 hex characters, no 0x prefix)

Example:

"0ff58efd75e083fe4fd759c8701e1c8cb6961c4297a12b2c800bdb7b2bcab889"

ak
string

Authentication key (64 hex characters, no 0x prefix)

Example:

"8072d9110c9de9d9ade33d5d0f5890a7aa65b0cde42af7816d187297caf2fd64"

nk
string

Nullifier key (64 hex characters, no 0x prefix)

Example:

"590bf33f93f792be659fd404df91e75c3b08d38d4e08ee226c3f5219cf598f14"

ivk
string

Incoming viewing key (64 hex characters, no 0x prefix)

Example:

"9f8e74bb3d7188a2781dc1db38810c6914eef4570a79e8ec8404480948e4e305"

d
string

Diversifier (22 hex characters, no 0x prefix)

Example:

"06e5f678901234567890ab"

pkD
string

Payment address public key (64 hex characters, no 0x prefix)

Example:

"a1b2c3d4e5f6789012345678901234567890123456789012345678901234abcd"

payment_address
string

Complete shielded payment address (ztron1 format, 78 characters)

Example:

"ztron1768kf7dy4qquefp46szk978d65eeua66yhr4zv260c0uzj68t3tfjl3en9lhyyfxalv4jus30xs"