POST
/
95e61622bf6a8af293978377718e3b77
/
wallet
/
getspendingkey
wallet/getspendingkey
curl --request POST \
  --url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getspendingkey \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "value": "0x02a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890"
}
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 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

  • value — the generated spending key as a hexadecimal string

Use case

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

Response

200 - application/json

Successfully generated spending key

The response is of type object.