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": "0x02a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890",
  "ask": "<string>",
  "nsk": "<string>",
  "ovk": "<string>",
  "ak": "<string>",
  "nk": "<string>",
  "ivk": "<string>",
  "d": "<string>",
  "pkD": "<string>",
  "payment_address": "ztron1abcdefghijk123456789..."
}
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 · object

Response

200 - application/json

Successfully generated new shielded address with full key set

The response is of type object.