wallet/getspendingkey
Shielded contract methods
wallet/getspendingkey | TRON
TRON API method that generates a new spending key for shielded TRC20 transactions. Available on TRON via Chainstack JSON-RPC nodes.
POST
wallet/getspendingkey
TRON API method that generates a new spending key for shielded TRC20 transactions. The spending key is the master private key used to derive other keys in the shielded transaction system and must be kept secure.
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
value— the generated spending key as a hexadecimal string
Use case
Thewallet/getspendingkey method is essential for:
- Creating new shielded addresses for privacy-preserving transactions
- Setting up wallets that support shielded TRC20 transfers
- Generating the master key from which all other shielded transaction keys are derived
- Enabling users to participate in private transactions on the TRON network
Body
application/json
The body is of type object.
Response
200 - application/json
Successfully generated spending key
The generated spending key in hexadecimal format (64 hex characters, no 0x prefix)
Example:
"02a1b2c3d4e5f67890123456789012345678901234567890123456789012345678"
Last modified on May 18, 2026