wallet/getnewshieldedaddress | TRON
TRON API method that generates a complete new shielded address with all necessary keys for shielded TRC20 transactions. TRON via Chainstack.
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
The body is of type object.
Response
Successfully generated new shielded address with full key set
Spending key (private key, 64 hex characters, no 0x prefix)
"02a1b2c3d4e5f67890123456789012345678901234567890123456789012345678"
Authentication secret key (64 hex characters, no 0x prefix)
"0f63eabdfe2bbfe08012f6bb2db024e6809c16e8ed055aa41a6095424f192005"
Nullifier secret key (64 hex characters, no 0x prefix)
"590bf33f93f792be659fd404df91e75c3b08d38d4e08ee226c3f5219cf598f14"
Outgoing viewing key (64 hex characters, no 0x prefix)
"0ff58efd75e083fe4fd759c8701e1c8cb6961c4297a12b2c800bdb7b2bcab889"
Authentication key (64 hex characters, no 0x prefix)
"8072d9110c9de9d9ade33d5d0f5890a7aa65b0cde42af7816d187297caf2fd64"
Nullifier key (64 hex characters, no 0x prefix)
"590bf33f93f792be659fd404df91e75c3b08d38d4e08ee226c3f5219cf598f14"
Incoming viewing key (64 hex characters, no 0x prefix)
"9f8e74bb3d7188a2781dc1db38810c6914eef4570a79e8ec8404480948e4e305"
Diversifier (22 hex characters, no 0x prefix)
"06e5f678901234567890ab"
Payment address public key (64 hex characters, no 0x prefix)
"a1b2c3d4e5f6789012345678901234567890123456789012345678901234abcd"
Complete shielded payment address (ztron1 format, 78 characters)
"ztron1768kf7dy4qquefp46szk978d65eeua66yhr4zv260c0uzj68t3tfjl3en9lhyyfxalv4jus30xs"